-
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
Rewire dav files endpoint to home #1120
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. |
the rewiring logic itself is broken, needs debugging |
@@ -175,9 +175,32 @@ func (s *svc) Handler() http.Handler { | |||
// oc uses /dav/files/$user -> /$home/$user/... | |||
// for oc we need to prepend the path to user homes | |||
// or we take the path starting at /dav and allow rewriting it? | |||
|
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.
This PR finally addresses the above comments. The /webdav and dav/files/ endpoints need to show the same tree for a user. /dav/files/ can also use the userid for other users, which is currently forbidden by oc10 but for ocis access is in theory possible using the eos driver because access is based on acls.
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.
@labkode how dous this fit with the way cern exposes projects at /webdav? Afaict this is better solved by the spaces concept we plan to introduce: an endpoint that iterates the storages a user has access to, as well as the quota, usage and root etag information.
the path parts are not split in the expected way, need some trimming |
If the user specified in the dav files URL matches the current one, rewire it to use the webDavHandler which is wired to the home storage. This fixes path mapping issues.
I've updated the code. At least a curl request goes through, like : Upload is broken: the initial POST works, but the subsequent PATCH requests return a 404:
it says "upload not found". Note: this was testing with EOS with OCIS and the settings from owncloud/ocis#484 |
Uploading to OC storage works fine, so the problem is specific to EOS and/or the current setup. |
|
650+ failures in the API tests. With upload broken a lot of failures are to be expected. |
also needs #1124 |
better approach here: #1125 |
If the user specified in the dav files URL matches the current one,
rewire it to use the webDavHandler which is wired to the home storage.
This fixes path mapping issues.
@butonic FYI