Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle folder deletion on external s3 storage #24185

Merged
merged 2 commits into from
Aug 14, 2021

Conversation

juliusknorr
Copy link
Member

Steps to reproduce:

  • On external s3 storage (minio in my test setup)
  • Create an empty folder
  • Delete the folder

Fixed by 7129f2c since otherwise the copyFromStorage would return false which is wrong for an empty directory

  • On external s3 storage (minio in my test setup)
  • Create a folder and add a single file to it
  • Delete the folder

Fixed by 62c0009 which makes sure that any leftover of the path is removed from the bucket.

I remember also seeing an issue for that but I cannot find it anymore.

@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Nov 17, 2020
@juliusknorr juliusknorr added this to the Nextcloud 21 milestone Nov 17, 2020
This was referenced Dec 14, 2020
This was referenced Dec 28, 2020
@rullzer rullzer modified the milestones: Nextcloud 21, Nextcloud 22 Jan 8, 2021
@MorrisJobke MorrisJobke mentioned this pull request May 20, 2021
@MorrisJobke
Copy link
Member

cc @icewind1991

@MorrisJobke MorrisJobke mentioned this pull request May 26, 2021
98 tasks
@blizzz blizzz mentioned this pull request Jun 2, 2021
57 tasks
@MorrisJobke MorrisJobke mentioned this pull request Jun 10, 2021
59 tasks
This was referenced Jun 16, 2021
@juliusknorr juliusknorr requested review from skjnldsv and removed request for rullzer and MorrisJobke June 23, 2021 16:26
@juliusknorr juliusknorr force-pushed the bugfix/noid/external-s3-delete-folder branch from 7129f2c to 213bf2b Compare June 23, 2021 16:30
@blizzz blizzz modified the milestones: Nextcloud 22, Nextcloud 23 Jun 24, 2021
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

👍 🐘

@skjnldsv
Copy link
Member

/rebase

Signed-off-by: Julius Härtl <jus@bitgrid.net>
…m another storage

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@nextcloud-command nextcloud-command force-pushed the bugfix/noid/external-s3-delete-folder branch from 213bf2b to bc3c463 Compare August 13, 2021 16:34
@skjnldsv skjnldsv merged commit fd12968 into master Aug 14, 2021
@skjnldsv skjnldsv deleted the bugfix/noid/external-s3-delete-folder branch August 14, 2021 07:28
@PVince81
Copy link
Member

/backport to stable22

@PVince81
Copy link
Member

/backport to stable21

@PVince81
Copy link
Member

/backport to stable20

@PVince81
Copy link
Member

hmmm, I hoped this would fix nextcloud/files_versions_s3#11 but it doesn't.

I'll investigate, also need to make sure that nested subdirs would get deleted too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants