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

camel-salesforce-maven-plugin: Unable to generate DTOs due to new encrypted field

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.16.0, 2.15.4
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The maven plugin is failing to generate the DTOs. It appears that Salesforce has recently introduced a new boolean field call encrypted to the 'DescribeSObjectResult' object [1,2]

      The fix is to modify the org.apache.camel.component.salesforce.api.dto.SObjectField and add the following:

      private Boolean encrypted;

      public Boolean getEncrypted()

      { return encrypted; }

      public void setEncrypted(Boolean encrypted)

      { this.encrypted = encrypted; }

      With this change the DTOs are generated. However, not sure if there is anything else which needs to be done.

      Btw, I am surprised that this new field causes a problem because the default API version Camel-Salesforce is configured to is 33.0 and this new field appears in 34.0.

      [1] https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_describesobjects_describesobjectresult.htm#topic-title
      [2] http://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_security_platform_encryption.htm

        Attachments

          Activity

            People

            • Assignee:
              dhirajsb Dhiraj Sureshkumar Bokde
              Reporter:
              simondelfab Simon Delfab
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: