Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20588

camel-salesforce: java.lang.IllegalArgumentException: Request header too large Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.0
    • 4.4.2, 4.5.0
    • camel-salesforce
    • 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

       

      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

          Activity

            People

              Unassigned Unassigned
              dclappert David Lappert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: