-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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
- Clone the repository https://github.tools.sap/CALMBuild/ptm-lib-srv.git.
- Use the attached settings file in ~/home/.m2.
- Run mvn clean install
- 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.
- Set a break-point in method iUseTheAPIToPatchTheApplicationWithTheUUIDWithTheFollowingData of class ApplicationUpdate to check that object application contains data for toLibraryAssignments.
- 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.
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 hereStack 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.