Skip to content

Etag change on unshare misses the first parent folder etag #15813

Closed

Description

@PVince81

Steps

Setup here: #14764 (comment)

Basically, share a folder with several users and put the folders in "sub1/sub2" subfolders for EVERY user. Then unshare as owner and check etag changes.

Expected result

Etag changes for all users except owner, including the parent folders of every user ("sub1" and "sub2")

Actual result

The etag does change, but it misses the direct parent "sub2" for every user.
Result here: #14764 (comment)

Versions

Observed on ownCloud 8.1 git master (750f0bc)

@icewind1991

Activity

  1. added this to the milestone on Apr 22, 2015
  2. PVince81 commented on Apr 22, 2015

    @PVince81
    ContributorAuthor

    Let me have a look at this one, I know you're quite busy already 😄

  3. PVince81 commented on Apr 22, 2015

    @PVince81
    ContributorAuthor

    Found it, the post unshare hook is calling dirname() on the path before passing it to correctFolders() which also calls dirname(). Will submit a PR.

  4. self-assigned this
    on Apr 22, 2015
  5. PVince81 commented on Apr 22, 2015

    @PVince81
    ContributorAuthor

    PR here: #15815

  6. locked as resolved and limited conversation to collaborators on Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions