-
Notifications
You must be signed in to change notification settings - Fork 112
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
OCDAV: map bad request and unimplemented codes #1354
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
01ec606
to
e48e169
Compare
@butonic can we make this a bit modular? So many switch cases make reading through the code a bit difficult. |
e48e169
to
f5f0b42
Compare
@ishank011 I moved the switch to a function and now use that throughout the ocdav handler. Using subloggers this even allows logging additional fields, eg. I deleted more lines than I added, so I'm happy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Will merge once CI is green
f5f0b42
to
74f541f
Compare
@butonic maybe rebase |
74f541f
to
f374ded
Compare
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
f374ded
to
b8a6a42
Compare
@labkode I had swallowed a conflic status when refactoring ... good to merge now. |
We now return a 400 bad request when a grpc call fails with an invalid argument status and a 501 not implemented when it fails with an unimplemented status. This prevents 500 errors when a user tries to add resources to the Share folder or a storage does not implement an action.
This is part of a series to get 500 errors returned as proper 400 errors: owncloud/product#7