Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Mar 19, 2025

Summary

Currently a TypeError is thrown when casting fails, this lead to a HTTP 500 error. Instead throw a proper InvalidArgumentError so the user receives a HTTP 400.

Checklist

@susnux susnux added this to the Nextcloud 32 milestone Mar 19, 2025
@susnux susnux requested a review from a team as a code owner March 19, 2025 18:09
@susnux susnux requested review from ArtificialOwl, nfebe and sorbaugh and removed request for a team March 19, 2025 18:09
@susnux susnux requested review from come-nc and removed request for sorbaugh April 4, 2025 15:27
* Resolves #49972

Currently a TypeError is thrown when casting fails,
this lead to a HTTP 500 error. Instead throw a proper
InvalidArgumentError so the user receives a HTTP 400.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit 698146c into master Apr 29, 2025
195 of 201 checks passed
@susnux susnux deleted the fix/search-cast branch April 29, 2025 11:41
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: dav search request responds with HTTP/1.1 500 Internal Server Error

5 participants