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

Delete object do nothing #2767

Closed
krajcikondra opened this issue Sep 4, 2023 · 1 comment
Closed

Delete object do nothing #2767

krajcikondra opened this issue Sep 4, 2023 · 1 comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@krajcikondra
Copy link

Describe the bug

When I call delete of object

        $result = $this->s3->deleteObject([
            'Bucket' => $file->storage_folder,
            'Key' => $this->getKey($file),
        ]);

It returns

image

But when I try download deleted object

            $this->s3->getObject([
                'Bucket' => $file->storage_folder,
                'Key' => $this->getKey($file),
                'SaveAs' => $pathToDownloadFile,
            ]);

It is still possible download. Why deleted file is not deleted?

Expected Behavior

File is deleted

Current Behavior

File is not deleted

Reproduction Steps

        $result = $this->s3->deleteObject([
            'Bucket' => $file->storage_folder,
            'Key' => $this->getKey($file),
        ]);

            $this->s3->getObject([
                'Bucket' => $file->storage_folder,
                'Key' => $this->getKey($file),
                'SaveAs' => $pathToDownloadFile,
            ]);

Possible Solution

No response

Additional Information/Context

No response

SDK version used

3.226.0

Environment details (Version of PHP (php -v)? OS name and version, etc.)

8.0

@krajcikondra krajcikondra added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 4, 2023
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant