Closed S-Panta closed 1 month ago
Also, here lies the summary of status code of various copying process that happens when shared resources via Secure viewer role. https://github.com/owncloud/ocis/issues/9334#issuecomment-2182573751
Should be 403
@butonic @kobergj If you agree.
@saw-jan @Salipa-Gurung can someone please make a test scenario for this in ocis, and check that it will pass with reva PR https://github.com/cs3org/reva/pull/4775
@saw-jan @Salipa-Gurung can someone please make a test scenario for this in ocis, and check that it will pass with reva PR cs3org/reva#4775
we do have PR #9437 for the test scenario. now have to test it with the respective fix PRs.
The issue is fixed in the spaces path but with old and new dav , the status code is still 500 Reference: https://drone.owncloud.com/owncloud/ocis/37540/52/5 @2403905
Curl examples:
# new dav path
curl -XCOPY "https://localhost:9200/dav/files/demo/Shares/shareme" \
-H"Destination: https://localhost:9200/dav/files/demo/shareme" \
-udemo:demo -vk
# old dav path
curl -XCOPY "https://localhost:9200/webdav/Shares/shareme" \
-H"Destination: https://localhost:9200/webdav/shareme" \
-udemo:demo -vk
500
for old
/new
dav paths :x:
< HTTP/1.1 500 Internal Server Error
old
, new
and spaces
Curl examples:
# new dav path curl -XCOPY "https://localhost:9200/dav/files/demo/Shares/shareme" \ -H"Destination: https://localhost:9200/dav/files/demo/shareme" \ -udemo:demo -vk # old dav path curl -XCOPY "https://localhost:9200/webdav/Shares/shareme" \ -H"Destination: https://localhost:9200/webdav/shareme" \ -udemo:demo -vk
500
forold
/new
dav paths ❌< HTTP/1.1 500 Internal Server Error
- If the shared file or folder (if empty or contains zero-byte files) then COPY works and file/folder is created ❓ Same for all dav paths:
old
,new
andspaces
@saw-jan The status code response for both the old/new dav paths is giving '403':
< HTTP/1.1 403 Forbidden
Then this can be closed here. THanks :+1:
Describe the bug
Copying files from shared shares via the secure view role results in a 500 status code.
Steps to reproduce
test
folder1
from Admin via Secure Role totest
.Expected behavior
What should be the expected status code for the process? This only happens in secure view. File copying is possible while sharing with other permission role
Actual behavior
The server returns 500 status code
Setup
```console OCIS_XXX=Infinite Scale 6.0.0+5f03a566ee Community OCIS_YYY=somevalue PROXY_XXX=somevalue ```