Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH request for updating nested collections does not work correctly since spring-boot 3.1.1 #2355

Closed
kamangacode opened this issue Jan 12, 2024 · 4 comments
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@kamangacode
Copy link

kamangacode commented Jan 12, 2024

Starting with Spring Boot 3.1.1, the PATCH method no longer works properly.
We try to update objects with aggregate collections but the collection is partially updated.
I create this project for more explanation and a way to reproduce the issue in both versions 3.1.0 and versions up to 3.1.1:
https://github.com/kamangacode/spring-data-rest-ano

Do you have any idea why this happened?

I appreciate your support.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 12, 2024
@odrotbohm odrotbohm added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 16, 2024
@odrotbohm
Copy link
Member

Sounds like a duplicate of #2350. Would you mind trying the latest snapshots?

@odrotbohm odrotbohm self-assigned this Jan 16, 2024
@spring-projects-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jan 23, 2024
@kamangacode
Copy link
Author

I am sorry what are the requested informations?
I gave a fully working project with all explanations to reproduce the issue: https://github.com/kamangacode/spring-data-rest-ano
And here is a copy of the readme file from the project:
Bug explanation
Starting with Spring Boot 3.1.1, the PATCH method is no longer working properly. This project is a minimal example to reproduce the bug. You can see the bug in action by running this command ./gradlew bootRun.

How to reproduce the bug
Import the spring-data-rest-ano.postman_collection.json file in Postman. Go to the PATCH request and run it. We try to update the participants field of the programme object. We already have 2 participants and expect to have 4 participants field. But we only have 3 participants field.

How to reproduce normal behavior
Go to "build.gradle" and change the Spring Boot version to 3.1.0. Run ./gradlew bootRun and run the PATCH request again. This time, we have 4 participants field as expected.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Jan 23, 2024
@odrotbohm
Copy link
Member

It looks like you chimed in on #2350. I had filed and fixed #2357 in response. So closing this as duplicate.

@odrotbohm odrotbohm added status: duplicate A duplicate of another issue and removed status: feedback-provided Feedback has been provided labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants