Shared file (with all the permissions) can't be moved
Expected behaviour
File should be moved
Actual behaviour
File can't be moved
Steps to reproduce
- There are two users in the server (user1 and user2)
- log in owncloud as user1:
- On the root upload a file and call it: doc.pdf
- Share the file called "doc.pdf" with ALL (update, delete and share) permission with user2.
- Log in as user2
- Now using webdav protocol, move a file called "doc.pdf" which is inside folder "Shared" to root. Notice that you have the right permission to do this.
We are going to see do it using poster (complement in firefox) (screenshot is attached)
* URL:server/remote.php/webdav/Shared/doc.pdf
* User: user2
* password:
* Action:MOVE
* Headers
- Destination: server/remote.php/webdav/doc.pdf
- Overwrite: T

- An 403 error is shown when it shouldn't because the file has all the permissions, so it should be moved
Server configuration
Owncloud version: It was tested in daily {"installed":"true","version":"6.0.0.2","versionstring":"6.0 beta 1","edition":""}
Client configuration
Browser: Firefox Operating system: MaOs 10.7.5
I think you're not supposed to be able to move files that are directly under the "Shared" folder ? Unless maybe you have the delete permission.
Can you try again in 6.0.2 ? If I remember well this was fixed recently and I remember testing this while fixing an encryption bug.
I've just tested using the latest stable version in daily, and it doesn't work. An 403 error is shown.
@schiesbn
Will be obsoleted on OC 7 / master. @purigarcia can you try your use case on master ?
If it still happens on OC 6.0.3 then we might still want to fix it there.
In oc7 it is working fine. In the latest version of oc6, {"installed":"true","version":"6.0.4.1","versionstring":"6.0.4","edition":""}, you can not move a file from shared folder to root. The things is that maybe it doesn't make sense to move a shared file from "Shared" folder as you said before.
Not sure. I don't remember whether this was ever allowed before, @schiesbn can you help to clarify this ?
@schiesbn What is the status here? Can this be closed?
related to https://github.com/owncloud/core/issues/5251 - maybe even the same issue? @purigarcia
The things is that maybe it doesn't make sense to move a shared file from "Shared" folder as you said before.
Yes, this wasn't allowed in OC 6. Since OC 7 shared files/folders can be moved freely.
Closing.