You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/03/20 18:34:00 UTC
[jira] [Resolved] (CAMEL-20588) camel-salesforce: java.lang.IllegalArgumentException: Request header too large Exception
[ https://issues.apache.org/jira/browse/CAMEL-20588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-20588.
---------------------------------
Resolution: Fixed
> 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
> Priority: Minor
> Fix For: 4.4.2, 4.5.0
>
>
> *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)