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 2015/06/23 19:14:02 UTC

[jira] [Commented] (CAMEL-8890) camel-salesforce-maven-plugin: Unable to generate DTOs due to new encrypted field

    [ https://issues.apache.org/jira/browse/CAMEL-8890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597977#comment-14597977 ] 

Claus Ibsen commented on CAMEL-8890:
------------------------------------

[~dhirajsb] wonder if you got some time to look into this?

> camel-salesforce-maven-plugin: Unable to generate DTOs due to new encrypted field
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-8890
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8890
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 2.15.2
>            Reporter: Simon Delfab
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)