Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15407

Merge operation in camel-olingo2 sets all entity properties to null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.x
    • Fix Version/s: 3.5.0
    • Component/s: camel-olingo2
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The merge operation in OData V2 can be used to update individual fields on an entity. The operation should perform an incremental update without replacing all the contents of an entry. In particular the request updates only the properties indicated in the request body, and leaves untouched any other property not mentioned in its current state.

      When the camel-olingo2 component performs the merge operation all fields are updated - also the not mentioned properties. Those fields not mentioned in the request body are set to null by default.

      This behavior is controlled by the EntityProvider write property called "isDataBasedPropertySerialization". By default this setting is set to false resulting in non present fields to be set to null by default. For merge operations this setting should be enabled by default in order to just update the mentioned fields in the request body.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                christophd Christoph Deppisch
                Reporter:
                christophd Christoph Deppisch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: