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

fix: use destinationBucket on copy #550

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

fenos
Copy link
Contributor

@fenos fenos commented Sep 19, 2024

What kind of change does this PR introduce?

Bug fix

What is the new behavior?

When copying across buckets, there was a bug in the edge case where you are:

  • copying across buckets
  • the destination key already exists
  • the destination key is the same name as the source

When all of the 3 scenario happens,
It would cause the file to be copied just fine, but it would delete the original.

This PR fixes this unwanted behaviour, and will correctly not delete the original file

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10936538381

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 8 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.05%) to 78.734%

Files with Coverage Reduction New Missed Lines %
src/storage/object.ts 8 89.09%
Totals Coverage Status
Change from base Build 10918956487: -0.05%
Covered Lines: 13614
Relevant Lines: 17143

💛 - Coveralls

@fenos fenos merged commit ddd1558 into master Sep 19, 2024
1 check passed
@fenos fenos deleted the fix/storage-copy-across-buckets branch September 19, 2024 08:17
Copy link

🎉 This PR is included in version 1.11.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants