-
Notifications
You must be signed in to change notification settings - Fork 113
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
Prevent panic on /remote.php/dav/files/ #1320
Changes from 1 commit
23783b1
370830e
24bf5c4
b8222bd
f02d7ab
b6a59b9
f972f66
5c0cef9
3cf4e25
392ea67
c777d6f
251c49f
0f5f818
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,10 @@ func (s *svc) handlePropfind(w http.ResponseWriter, r *http.Request, ns string) | |
case rpc.Code_CODE_PERMISSION_DENIED: | ||
log.Debug().Str("path", fn).Interface("status", res.Status).Msg("permission denied") | ||
w.WriteHeader(http.StatusMultiStatus) | ||
// TODO this is not a correct mapping. A new code SHOULD be added to the cs3apis. | ||
case rpc.Code_CODE_UNIMPLEMENTED: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should check if the username is missing only in the ocs api. no need to push these quirks into storage providers or the cs3 api. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agree, will contain the changes to ocdav only |
||
log.Debug().Str("path", fn).Interface("status", res.Status).Msg("method not allowed") | ||
w.WriteHeader(http.StatusMethodNotAllowed) | ||
default: | ||
log.Error().Str("path", fn).Interface("status", res.Status).Msg("grpc stat request failed") | ||
w.WriteHeader(http.StatusInternalServerError) | ||
|
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.
A storage provider determines if the listing of the root folder is allowed based on permissions, not the gateway ...