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

🐛 Bug Report: Storage File deleted accidentally from digital ocean spaces on move #5814

Open
2 tasks done
fogelito opened this issue Jul 13, 2023 · 2 comments
Open
2 tasks done
Assignees
Labels
backlog Issues waiting in the backlog bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.

Comments

@fogelito
Copy link
Contributor

👟 Reproduction steps

Storage::setDevice('files', new DOSpaces('bla', params...);

$device = Storage::getDevice('files');
$device->move($from, $to);

in case
$from === $to
are accidentally the same, the file gets deleted.

👍 Expected behavior

An Exception should be thrown.

👎 Actual Behavior

The $from file gets DELETED

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@fogelito fogelito added the bug Something isn't working label Jul 13, 2023
@stnguyen90 stnguyen90 added the product / storage Fixes and upgrades for the Appwrite Storage. label Jul 19, 2023
@joeyouss
Copy link

Putting this in backlog as of now

@joeyouss joeyouss added the backlog Issues waiting in the backlog label Aug 22, 2023
@joeyouss
Copy link

Here lies the PR: utopia-php/storage#84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues waiting in the backlog bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.
Projects
None yet
Development

No branches or pull requests

3 participants