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

Load filelist before uploading contents #7387

Closed
wants to merge 1 commit into from
Closed

Conversation

JammingBen
Copy link
Contributor

Description

Load the filelist before uploading contents to ensure the conflict modal shows if a resource already exists on the server side.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Aug 2, 2022
@update-docs
Copy link

update-docs bot commented Aug 2, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@JammingBen
Copy link
Contributor Author

JammingBen commented Aug 2, 2022

@kulmann I took some time to evaluate the best solutions here, unfortunately the best way I see is to load the file list before uploading by adding an additional publish method to our event bus which can be awaited. Do you have any other ideas here?

Still missing in this PR if we decide for this approach:

  • Add await statement in other file lists
  • Do the same before creating a folder

Edit: Oh well, this approach does not look too good in folders with many files 😞 Maybe only retrieve the files via a PROPFIND (without reloading the file list) and handle the conflict-search internally?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@JammingBen
Copy link
Contributor Author

Superseded by #7664.

@JammingBen JammingBen closed this Sep 20, 2022
@kulmann kulmann deleted the conflict-window branch September 5, 2024 19:55
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.

Dubious overwrite logic with etag / server side conflict handling
2 participants