Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.3
-
None
-
%
-
Description
Attributes returned by salesforce for a camel "query", are not correctly mapped to dto objects in camel-salesforce. For instance, when the following is executed:
<to id="myquery" uri="salesforce:query?sObjectQuery=SELECT AccountId,OrderNumber FROM Order&sObjectClass=org.apache.camel.salesforce.dto.QueryRecordsOrder"/>
the AccountId and OrderNumber return attributes are not mapped to the Order object DTO. This same endpoint works in Fuse on Karaf.
Preliminary analysis:
Versions
EAP: mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.9.redhat-4 Fuse: mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.13
The index in org.codehaus.jackson.map.deser.impl.BeanPropertyMap is being calculated for accountId in EAP and AccountId in Fuse:
EAP
String key = property.getName(); //accountId int index = key.hashCode() & _hashMask; //40
Fuse
property.getName(); //AccountId int index = key.hashCode() & _hashMask; //8
Attachments
Issue Links
- is cloned by
-
ENTESB-8205 camel-salesforce query attributes are not mapped correctly
- Closed
- relates to
-
ENTESB-8202 camel-salesforce multi-select picklist attribute query return value error in wildfly-camel
- Done