Simon Delfab created CAMEL-8890:
-----------------------------------
Summary: 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)