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

Salesforce keeps breaking backward compatibility by adding fields to older API versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.2, 2.18.0
    • 2.17.3, 2.18.0
    • camel-salesforce
    • None
    • Unknown

    Description

      Salesforce adds fields to org.apache.camel.component.salesforce.api.dto.RestResources even after an API has been released. This needs to be handled in the component by ignoring unknown properties for that type.

      XStream doesn't support doing this for an single DTO, but it can be done for all types by using XStream.ignoreUknownProperties(). It will make it ignore all unknown properties for all inbuilt DTOs as wells user generated ones. But since the XML payload is less popular, hopefully this behavior won't be an issue.

      Attachments

        Activity

          People

            dhirajsb Dhiraj Sureshkumar Bokde
            dhirajsb Dhiraj Sureshkumar Bokde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: