Skip to content

Properly fail on invalid json #53740

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Jul 1, 2025

Summary

When Nextcloud receives a request with a JSON body that is invalid and cannot be decoded, it should fail with an error, not ignore the failure and treat the request as if the body was empty.

Checklist

come-nc added 2 commits July 1, 2025 10:25
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added this to the Nextcloud 32 milestone Jul 1, 2025
@come-nc come-nc requested a review from provokateurin July 1, 2025 08:45
@come-nc come-nc self-assigned this Jul 1, 2025
@come-nc come-nc requested a review from a team as a code owner July 1, 2025 08:45
@come-nc come-nc requested review from icewind1991 and skjnldsv and removed request for a team July 1, 2025 08:45
@come-nc come-nc added the 3. to review Waiting for reviews label Jul 1, 2025
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Webhook api in v30/v31 not working for webhook creation
3 participants