core icon indicating copy to clipboard operation
core copied to clipboard

Shared file (with all the permissions) can't be moved

Open purigarcia opened this issue 13 years ago • 10 comments

Expected behaviour

File should be moved

Actual behaviour

File can't be moved

Steps to reproduce

  1. There are two users in the server (user1 and user2)
  2. log in owncloud as user1:
  • On the root upload a file and call it: doc.pdf
  1. Share the file called "doc.pdf" with ALL (update, delete and share) permission with user2.
  2. Log in as user2
  3. 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

screen shot 2013-10-29 at 9 40 24 am 2

  1. 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

purigarcia avatar Oct 29 '13 08:10 purigarcia

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.

PVince81 avatar Jan 23 '14 20:01 PVince81

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.

PVince81 avatar Mar 10 '14 20:03 PVince81

I've just tested using the latest stable version in daily, and it doesn't work. An 403 error is shown.

purigarcia avatar Apr 09 '14 10:04 purigarcia

@schiesbn

PVince81 avatar Apr 09 '14 10:04 PVince81

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.

PVince81 avatar May 06 '14 14:05 PVince81

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.

purigarcia avatar Jul 01 '14 11:07 purigarcia

Not sure. I don't remember whether this was ever allowed before, @schiesbn can you help to clarify this ?

PVince81 avatar Jul 01 '14 11:07 PVince81

@schiesbn What is the status here? Can this be closed?

karlitschek avatar Dec 05 '14 18:12 karlitschek

related to https://github.com/owncloud/core/issues/5251 - maybe even the same issue? @purigarcia

DeepDiver1975 avatar Mar 20 '15 17:03 DeepDiver1975

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.

PVince81 avatar Aug 03 '15 13:08 PVince81