Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.4.0
-
None
-
Unknown
Description
Summary
The Set-Cookie "Expires" cookie attribute is being incorrectly parsed by the version 8.0.0.beta1 cometd-java-client-http-jetty library. This results in the header growing indefinitely, eventually leading to a "java.lang.IllegalArgumentException: Request header too large Exception" being thrown by Salesforce. This issue seems to have been resolved in 8.0.0.beta2 by this PR: https://github.com/cometd/cometd/pull/1631
Root Cause
The issue stems from the use of the HttpField.getValueList method, and its use of the QuotedCSV class that extends QuotedCSVParser, see JettyHttpClientTransport.java:238.
Artifacts
- https://github.com/cometd/cometd/issues/1600
- https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.2.1
Resolution
Explicitly pinning to the following version of cometd-java-client-http-jetty fixes the issue related to the "Expires" attribute being incorrectly parsed.
<dependency> <groupId>org.cometd.java</groupId> <artifactId>cometd-java-client-http-jetty</artifactId> <version>8.0.0.beta2</version> </dependency>
Attachments
Issue Links
- links to