-
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
Add support for meta-path-for-user propfind #2741
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as resolved.
This comment was marked as resolved.
kulmann
force-pushed
the
propfind-meta-path-for-user
branch
from
April 13, 2022 13:29
794dca3
to
6e0bf17
Compare
kulmann
force-pushed
the
propfind-meta-path-for-user
branch
from
April 14, 2022 12:09
6e0bf17
to
bfac65c
Compare
kulmann
commented
Apr 14, 2022
kulmann
force-pushed
the
propfind-meta-path-for-user
branch
3 times, most recently
from
April 26, 2022 12:46
25e2c1e
to
a71699e
Compare
Now we just have: https://drone.cernbox.cern.ch/cs3org/reva/6755/16/6
Maybe the server code is "completely silent" if the request does not match any resource? |
micbar
force-pushed
the
propfind-meta-path-for-user
branch
from
April 27, 2022 20:03
a71699e
to
692c40e
Compare
micbar
approved these changes
Apr 27, 2022
butonic
approved these changes
Apr 27, 2022
11 tasks
Closed
45 tasks
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for the
meta-path-for-user
prop in propfinds to the/dav/meta
endpoint. This is needed in oC Web for following situations:a) when no resource path but only its id is given in the browser URL, fetch the path to make a propfind afterwards
b) when a resource path and id is given in the browser URL but resolves to an outdated location (e.g. resource has been moved), fetch new path to make another propfind with the correct path afterwards
Based on outdated/closed #2321 and #1604
Spec can be found here: https://doc.owncloud.com/server/next/developer_manual/webdav_api/meta.html
An example request:
curl -u einstein:relativity --insecure -X PROPFIND -H "Depth: 0" -H "Content-Type: text/xml" --data "@meta-files.xml" 'https://localhost:9200/remote.php/dav/meta/ddc2004c-0977-11eb-9d3f-a793888cd0f8!aa07d86a-f564-4e26-9e36-632ef63df9f0' | xmllint --format -
with content of
meta-files.xml
being: