ISSUE:
When Nexus Lifecycle is connected to Bitbucket SCM, log file is filled with below WARN messages.
2023-12-13 11:41:05,414+1100 WARN [QuartzScheduler_Worker-10] *SYSTEM org.apache.http.client.protocol.ResponseProcessCookies - Invalid cookie header: "Set-Cookie: BITBUCKETSESSIONID=7ECE0D7DC52828B56C2ADD0B5F95B5A9; Max-Age=1209600; Expires=Wed, 27 Dec 2023 00:41:05 GMT; Path=/; HttpOnly". Invalid 'expires' attribute: Wed, 27 Dec 2023 00:41:05 GMT
CAUSE:
Nexus Lifecycle 1.166+ uses httpclient version 4.5.14, which sets Cookie attribute Expires with above format. As per HTTPCLIENT-1763 this format is valid and Bitbucket also suggests suppress the warning message
SOLUTION:
We recommend to suppress the warning by adding below line to config,yml file logger section and restart Nexus IQ.
# Logger-specific settings.
loggers:
"org.apache.http.client.protocol.ResponseProcessCookies": ERROR
"com.sonatype.insight.scan": INFO