bogdan.tomc...@sabre.com created AMQ-8483:
---------------------------------------------

             Summary: HttpClientTransport refuses to accept cookies using 
`Expires' header
                 Key: AMQ-8483
                 URL: https://issues.apache.org/jira/browse/AMQ-8483
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 5.16.1
            Reporter: bogdan.tomc...@sabre.com


There was a defect: AMQ-6571.

It was fixed, but after changing HttpClient and deprecating some cookie policy, 
HttpTransport changed cookie transport to DEFAULT is reverting AMQ-6571 and 
causing that cookie in proper (standard) format is not accepted:

{noformat}
2022-02-08 09:33:03,213  WARN [ActiveMQ InactivityMonitor Worker] [] 
ResponseProcessCookies - Invalid cookie header: "Set-Cookie: 
visid_incap_2728520=CG9VG5JLS0G1CPBkbkki6IwqAmIAAAAAQUIPAAAAAACRk2zteKSpqYiAk+oxSH4E;
 expires=Wed, 08 Feb 2023 08:17:31 GMT; HttpOnly; path=/; 
Domain=.blablabla.com". Invalid 'expires' attribute: Wed, 08 Feb 2023 08:17:31 
GMT
2022-02-08 09:33:03,213  WARN [ActiveMQ InactivityMonitor Worker] [] 
ResponseProcessCookies - Invalid cookie header: "Set-Cookie: 
___utmvmSauwmYsZ=a; Max-Age=0; path=/; expires=Sat, 05 Feb 2022 08:10:54 GMT". 
Invalid 'expires' attribute: Sat, 05 Feb 2022 08:10:54 GMT
{noformat}

Switching to: STANDARD we were able to patch and fix on our side:
{noformat}
requestConfigBuilder.setCookieSpec(CookieSpecs.STANDARD)
{noformat}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to