-
Notifications
You must be signed in to change notification settings - Fork 192
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
Getting content of a shared file with same name returns 500 #3880
Comments
All 3 resources are returned in the PROPFIND of
I guess there might be some way for a new client to know about this kind f thing, and display all 3 resources, and then fetch the content of a resource by specifying a path that uses the unique file id, in order to get the content of one of the resources. And the client could lookup the OCS Sharing API to try to sort out which resource is a share received from which user etc. So maybe there is a possible algorithm for new clients to implement a way to show an end-user a set of useful meta-data about the resource, and the user to be able to choose which resource(s) they want to access (view/download/update...) But existing clients "in the wild" are going to use the |
partial fix in #3853 Creating a |
@micbar, I think this issue can be closed. We don't offer a way to get a shared file via Creating a |
The user can create a The user's own |
You're right. Also a PROPFIND on |
hmm, this is a real drawback. |
It's always a nuisance/problem if a namespace is "polluted" by "special" things, or things that "just arrive" largely out of the user's control. This problem exists in oC10 - if Maybe the |
@individual-it ^ - FYI this is what was mentioned this morning. |
There are other problems with this too. I'll create a separate issue. |
reported here at #4289 |
Signed-off-by: Kiran Parajuli <[email protected]>
Signed-off-by: Kiran Parajuli <[email protected]>
Signed-off-by: Kiran Parajuli <[email protected]>
…ures-list [tests-only] removed closed issue #3880 from expected failures list
Describe the bug
Getting content of a shared file with same name returns 500
Steps to reproduce
Steps to reproduce the behavior:
marie
create a filetestfile.txt
with contentfirst file
curl -X PUT -vk -u marie:radioactivity https://localhost:9200/remote.php/dav/files/marie/testfile.txt -d"first file"
einstein
create a filetestfile.txt
with contentsecond file
curl -X PUT -vk -u einstein:relativity https://localhost:9200/remote.php/dav/files/marie/testfile.txt -d"second file"
marie
andeinstein
share the file with usermoss
moss
create folderShares
curl -X MKCOL -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares
moss
create a fileShares/testfile.txt
with contentthird file
curl -X PUT -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares/testfile.txt -d"third file"
moss
accept both sharesmoss
get the filecurl -X GET -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares/testfile.txt
Expected behavior
There should be certain differentiation on which file to
get
,put
and the request should workActual behavior
You should be able to get the content of the file but as there are 3 files now that could be
Shares/testfile.txt
there's no knowing inapi
level which file toget
and the request fails with500
curl -X GET -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares/testfile.txt
Same behaviour for
put
request as well and probably other request too.curl -X PUT -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares/testfile.txt -d"test file file"
The
propfind
to theShares
foldercurl -X PROPFIND -vk -u moss:vista https://localhost:9200/remote.php/dav/files/moss/Shares | xmllint --format -
Setup
Please describe how you started the server and provide a list of relevant environment variables.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: