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

Add filename incrementor for secret filedrops. #4491

Merged
merged 7 commits into from
Feb 5, 2024

Conversation

dragonchaser
Copy link

@dragonchaser dragonchaser commented Feb 1, 2024

Enhancement: Add filename incrementor for secret filedrops

We have added a function that appends a number to the filename if the file already exists in a secret filedrop.
This is useful if you want to upload a file with the same name multiple times.

refs owncloud/ocis#8291

@dragonchaser dragonchaser force-pushed the filename-incrementor branch 4 times, most recently from 5744f5a to 4b087c2 Compare February 1, 2024 13:04
@dragonchaser dragonchaser marked this pull request as ready for review February 1, 2024 13:14
@dragonchaser dragonchaser requested review from labkode, a team and glpatcern as code owners February 1, 2024 13:14
@dragonchaser dragonchaser marked this pull request as draft February 1, 2024 13:24
@butonic
Copy link
Contributor

butonic commented Feb 1, 2024

@micbar we implemented this in ocdav ... I'm not sure if this needs to move to the storage provider. It would need to have a way to find out if the request is made to a public file drop. In ocdav we use the token stat permission set to make that decision. Which feels fragile, but that is what we can determine. Hm we might check the share permissions in dav.go and store them in the context ... then tus.go and dav.go can read the share info 🤔

dragonchaser and others added 6 commits February 2, 2024 11:00
Co-authored-by: Jörn Dreyer <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Jörn Dreyer <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Jörn Friedrich Dreyer <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
@butonic butonic requested a review from kobergj February 2, 2024 13:00
@butonic butonic marked this pull request as ready for review February 2, 2024 13:00
@butonic
Copy link
Contributor

butonic commented Feb 2, 2024

I created a followup issue owncloud/ocis#8358.

This PR is good as it is for now.

@dragonchaser dragonchaser merged commit 2c21ada into cs3org:edge Feb 5, 2024
9 checks passed
@dragonchaser dragonchaser deleted the filename-incrementor branch February 5, 2024 06:50
@micbar micbar mentioned this pull request Feb 26, 2024
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants