Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7903

camel-salesforce query attributes are not mapped correctly

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      test projects available

      Show
      test projects available

      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&amp;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
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thomas.diesler Thomas Diesler
                  Reporter:
                  rhn-support-shiggs Stephen Higgs
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: