Skip to content

Commit

Permalink
[owncloud] propagate mtime on RemoveGrant (#1115)
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic authored Aug 24, 2020
1 parent f7d586d commit 72380a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/propagate-mtime-on-remove-grant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: owncloud driver - propagate mtime on RemoveGrant

When removing a grant the mtime change also needs to be propagated. Only affectsn the owncluod storage driver.

https://github.com/cs3org/reva/pull/1115
6 changes: 5 additions & 1 deletion pkg/storage/fs/owncloud/owncloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,11 @@ func (fs *ocfs) RemoveGrant(ctx context.Context, ref *provider.Reference, g *pro
attr = sharePrefix + "u:" + g.Grantee.Id.OpaqueId
}

return xattr.Remove(np, attr)
if err = xattr.Remove(np, attr); err != nil {
return
}

return fs.propagate(ctx, np)
}

func (fs *ocfs) UpdateGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error {
Expand Down

0 comments on commit 72380a6

Please sign in to comment.