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

camel-salesforce - BulkAPI createBatchQuery swallows error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.5.0, 3.4.4
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'm not quite sure what exception handling looks like when it's getting passed around but this callback code is swallowing the exception:

      https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/DefaultBulkApiClient.java#L318-L327

      Exception coming into this callback was (paraphrasing) "Salesforce didn't like one of the parameters to the REST API" and then this code tries to unmarshal the response and throws an unmarshalling error.

      Workaround for now is to fix the API error so this code can unmarshal successfully.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgenereu Michael Genereux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: