Skip to content

[stable18] fix moving files from external storage to object store trashbin - #21982

Merged
MorrisJobke merged 6 commits into
stable18from
backport/21628/stable18
Aug 10, 2020
Merged

[stable18] fix moving files from external storage to object store trashbin#21982
MorrisJobke merged 6 commits into
stable18from
backport/21628/stable18

Conversation

@backportbot-nextcloud

@backportbot-nextcloudbackportbot-nextcloudBot commented Jul 23, 2020

Copy link
Copy Markdown

backport of #21628

@MorrisJobke

Copy link
Copy Markdown
Member

@icewind1991 🏓

having the "cache rename" after the "storage move" caused the target
to get the fileid from the source file, without taking care that the object
is stored under the original file id.
By doing the "cache rename" first, we trigger the "update existing file"
logic while moving the file to the object store and the object gets stored for the
correct file id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
this remove the ambiguity when writing zero length files
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
object stores are "special" given how they interact with the cache on their own
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991force-pushed the backport/21628/stable18 branch from f3199a2 to 8d9c41cCompareJuly 31, 2020 15:33
@icewind1991

Copy link
Copy Markdown
Member

resolved conflicts

@MorrisJobkeMorrisJobke added the 3. to review Waiting for reviews label Jul 31, 2020
@nextcloudnextcloud deleted a comment from faily-botBotAug 3, 2020

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@MorrisJobke
MorrisJobke merged commit f626f4d into stable18Aug 10, 2020
@MorrisJobke
MorrisJobke deleted the backport/21628/stable18 branch August 10, 2020 13:42
@rullzerrullzer mentioned this pull request Aug 13, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@MorrisJobke@icewind1991@rullzer