Skip to content

Drag file/folder onto read-only remote share destroys the file #9087

Closed

Description

@PVince81

Steps to reproduce

  1. Setup two servers "localserver" and "remoteserver".
  2. Enable external storage app on "localserver"
  3. On "remoteserver" share a folder "shared_folder" with link in read-only mode
  4. Open the link
  5. Add the share to "localserver" (server-server sharing)
  6. On "localserver" create a test folder "test" with contents
  7. Drag "test" onto the remote share "shared_folder"

Expected result

Either: dragging must not work because the folder permissions are read-only.
Or: Error message is shown after trying to move.

Actual result

Dragging worked, spinner appears and stays forever.
After refreshing the page, the folder "test" has been destroyed. It has been deleted and there are no traces of it neither in "shared_folder" (because it's read-only) not in the local user's trashbin.

More information

OC 7 git master (baf46c7) (on both servers)

Note: the permissions I've seen on "shared_folder" in the UI are 27.
It seems the create permission is not there but the update creation is there, which might explain why the dragging code still went through.

Please have a look @icewind1991

Activity

  1. PVince81 commented on Jun 18, 2014

    @PVince81
    ContributorAuthor

    CC @schiesbn

  2. PVince81 commented on Jun 20, 2014

    @PVince81
    ContributorAuthor

    Setting milestone to OC 7 CE, especially that data loss is involved !

  3. added this to the ownCloud 7 CE milestone on Jun 20, 2014
  4. locked as resolved and limited conversation to collaborators on Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions