Uploaded image for project: 'ZZZ-WSO2 Data Services Server'
  1. ZZZ-WSO2 Data Services Server
  2. DS-1218

DSS ignores case sensitivity on mongoDB output mappings

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.1-Beta
    • Component/s: None
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      It appears that DSS ignores case sensitivity on mongoDB output mappings.

      For instance, in MongoDB I have a document like the following:
      {
      "_id" : ObjectId("577ee5e90f65f3310d60dce6"),
      "loc" :

      { "lon" : -117.010086, "lat" : 32.772531 }

      ,
      "address" :

      { "streetLine2" : "", "zipcode" : "91941", "streetLine1" : "5141 Jackson Dr", "country" : "USA", "city" : "La Mesa", "state" : "CA" }

      }

      When I have a JSON mapping with:
      {
      "loc" :

      { "lon" : $document.loc.lon, "lat" : $document.loc.lat }

      ,
      "address" :

      { "streetLine2" : $document.address.streetLine2, "streetLine1" : $document.address.streetLine1 }

      }

      I get an error:
      TID: [-1234] [] [2016-07-12 16:35:08,262] ERROR

      {org.apache.axis2.transport.http.CommonsHTTPTransportSender}

      - DS Fault Message: Error occurred when retrieving data. :JSONObject["streetline2"] not found.

        Attachments

          Activity

            People

            • Assignee:
              madhawag@wso2.com Madhawa Gunasekara
              Reporter:
              jason.latonio@jackinthebox.com Jason Latonio
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: