David Lappert created CAMEL-20588:
-------------------------------------

             Summary: camel-salesforce: java.lang.IllegalArgumentException: 
Request header too large Exception
                 Key: CAMEL-20588
                 URL: https://issues.apache.org/jira/browse/CAMEL-20588
             Project: Camel
          Issue Type: Bug
          Components: camel-salesforce
    Affects Versions: 4.4.0
            Reporter: David Lappert


*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.

 
{code:java}
<dependency>
    <groupId>org.cometd.java</groupId>
    <artifactId>cometd-java-client-http-jetty</artifactId>
    <version>8.0.0.beta2</version>
</dependency>{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to