Skip to content

Unshare from user must lock path to avoid recipient access #17244

Closed

Description

@PVince81

Steps to reproduce

  1. Enable transactional file locking
  2. Create two users "user1" and "user2"
  3. Login as "user1"
  4. Create a folder "test"
  5. Share "test" with "user2"
  6. Add sleep(30); here to delay the unshare operation:
    $toDelete = array();
  7. Unshare "test" from "user2"
  8. At the same time, try downloading or modifying the contents of the folder "test" as user2 (recipient)

Expected result

Folder "test" is exclusively locked.

Actual result

Folder can still be tempered with while the unshare operation is running.

Version

ownCloud 8.1 git master b88a0e7

Note: this should also prevent two unshare operations to run in parallel.

Activity

  1. added this to the milestone on Jun 29, 2015
  2. PVince81 commented on Jun 29, 2015

    @PVince81
    ContributorAuthor
  3. PVince81 commented on Jun 29, 2015

    @PVince81
    ContributorAuthor

    @DeepDiver1975 @cmonteroluque I scheduled to 8.2, I don't think there is time left for this

  4. changed the title [-]Unshare from user must lock recipient path[/-] [+]Unshare from user must lock path to avoid recipient access[/+] on Jun 29, 2015
  5. PVince81 commented on Sep 29, 2015

    @PVince81
    ContributorAuthor

    Not sure if sev high or medium as I don't know what kind of breakage could happen.
    @schiesbn do you see anything bad happening (ex: data loss) when updating sharing keys during an unshare while people access the files ?

  6. ghost added this to the backlog milestone on Oct 5, 2015
  7. ghost removed this from the milestone on Oct 5, 2015
  8. ownclouders commented on Jan 13, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  9. ownclouders commented on Feb 23, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  10. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions