Skip to content

CLoud SDK OData V4 client - Deep update (PATCH) not working #1117

@AHaury

Description

@AHaury

Describe the Bug

Hello,
In patch requests build with the fluent API, updates of deep (association like) attributes are ignored. From Update field of a property with complex type in OData Client V2 and Support deep update with complex type via odata clients one understands that this is support to work. We are using cloud SDK 5.26.
Best regards
Axel.

Steps to Reproduce

  1. Clone the repository https://github.tools.sap/CALMBuild/ptm-lib-srv.git.
  2. Use the attached settings file in ~/home/.m2.
  3. Run mvn clean install
  4. Run the cucumber test scenario I can use the API to add and remove assignments to developments using deep update in file src/test/resources/com.sap.calm.imp.lib.app.v1/ApplicationUpdate.feature.
  5. Set a break-point in method iUseTheAPIToPatchTheApplicationWithTheUUIDWithTheFollowingData of class ApplicationUpdate to check that object application contains data for toLibraryAssignments.
  6. Set a breakpoint in the CDS event handler beforeUpdateApplications in class APIApplicationsHandler and check there that the complex property toLibraryAssignments was stripped off.

Please note that complex creation seems to work and that CAP CDS is supports deep update.

settings.zip

Expected Behavior

We expect that the Cloud SDK OData generator passes patch requests including complext attributes to the server.

Screenshots

No response

Used Versions

  • Java and Maven version via mvn --version: ...
  • SAP Cloud SDK version: ...
  • Spring Boot or CAP version: ...
Dependency tree via mvn dependency:tree
Dependency tree here

Code Examples

// Your code here

Stack Trace

No response

Log File

Log file ...

Affected Development Phase

Customer requirement

Impact

Impacts integration tests.

Timeline

Urgent. - Please provide an evaluation confirming that our expectations are correct. In case of documentation showing how to request deep patch updates please also do let us know urgently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions