Repository navigation
Update parent when moving share into recieved share - #20989
Conversation
|
By analyzing the blame information on this pull request, we identified @schiesbn, @PVince81 and @owncloud-bot to be potential reviewers |
There was a problem hiding this comment.
Might be better to do it in a post hook ? What if the rename failed ?
Usually what we did is gather the relevant info in a pre hook, store it in a local (static 😱) variable and then do the operation in the post hook
There was a problem hiding this comment.
aaah mmm yes makes sense... lets see what breaks if I do that
|
I rebased the test PR on this in #20893 where the OCS integration tests pass! |
|
Tested, works 👍 |
|
@schiesbn can you have a look at this ? Tricky stuff |
81326b7 to
d38949f
Compare
Fixes #20769 When I receive a share and move a share of myself into that share (which is allowed currently) I effectively hand over ownership of the files I move. So we need to update the share I move to have as a parent the share I move it into. Else our mounting system gets confused.
|
makes sense & code looks good 👍 |
|
@karlitschek backport to 8.2 (maybe even 8.1 and 8.0)? |
Update parent when moving share into recieved share
|
please backport to 8.2 8.1 and 8.0 |
Fixes #20769
When I receive a share and move a share of myself into that share (which
is allowed currently) I effectively hand over ownership of the files I
move. So we need to update the share I move to have as a parent the
share I move it into. Else our mounting system gets confused.
No unit tests here since well. It is hell to write them for this code :( But we have an integration tests PR ready for exactly this case: #20893
Lets see if we don't break anything else.