User can move a file from a shared folder with role editor
to shared folder with role viewer
in Shares Jail
#4192
Labels
Milestone
Description
While moving a file from one share folder where permission is
editor
to another share folder where permission is set toviewer
, A user should to forbidden to move or create any file to the share folder where permission isviewer
Steps to Reproduce
einstein
marie
marie
creates foldertshare1
marie
uploads a filetshare1/hello.txt
marie
creates another foldertshare2
marie
sharestshare1
toeinstein
with permissioneditor
marie
sharestshare2
toeinstein
with permissionviewer
einstein
accepts both shareseinstein
moves thetshare1/hello.txt
totshare2/hello.txt
inShares Jail
Curl command to
MOVE
files/foldercurl -ks -ueinstein:relativity -X MOVE -H "DESTINATION:https://localhost:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668\$a0ca6a90-a365-4782-871e-d44447bbc668/tshare2/hello.txt" https://localhost:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668\$a0ca6a90-a365-4782-871e-d44447bbc668/tshare1/hello.txt -v | xmllint --format -
Response from the command:
Environment
OCIS = latest docker pull
The text was updated successfully, but these errors were encountered: