-
Notifications
You must be signed in to change notification settings - Fork 184
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
POST response does not return correct path when creating public link #5139
Comments
some remarks: clients should be sending a
for the space id we accept
Now for the path in the response we see that when listing public links the path does contain the parent folders ... we need to check why the create response does not contain them. |
@butonic Currently, the iOS client uses the File ID as If it should pass only the space id, that will be a challenge because #5355 is still unsolved. And, by extension, without a deterministic way to determine the space id of a shared item, providing the correct, relative path will be a challenge as well. |
@felix-schwarz See the examples above. you can provide anything from a complete resourceID to a single spaceID. |
@butonic I tried sending in the param
And the curl command to reproduce it is:
Tested on ocis.owncloud.works |
any ETA for this fix? |
Since getting the path is an expensive operation and might leak data I only added it for the fix is here cs3org/reva#4004 needs a reva bump after merge |
Describe the bug
Creation of a public link: the
POST
request does not return the path to the item.Steps to reproduce
Steps to reproduce the behavior:
/A/land2.jpg
. Followingcurl
request will help:Expected behavior
path
field in POST response containing the path to the item:"path":"/A/land2.jpg",
Actual behavior
path
field in POST response does not contain the path:this is causing a problem in mobile clients: When public link is created, it is not reflected till parent folder is refreshed.
Setup
Container created with the following docker-compose file:
Additional context
Problem does not happen in oC10, where the path field contains the correct path.
The text was updated successfully, but these errors were encountered: