Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Storage.delete returns false on NotFound, BatchRequest.delete shows failure #372

Copy link
Copy link

Description

@mziccard
Issue body actions

If we try to delete a non-existing blob storage.delete(nonExistingBlob) returns false.
If we try to delete a non-existing blob with a batch request:

BatchRequest batchRequest = BatchRequest.builder()
    .delete(nonExistingBlob)
    .build();
...
batchResponse.deletes().get(0).failed(); // This is true

The deletion of a non-existing-blob is considered a failure in BatchResponse.
Wouldn't it be better to make this two ways of deleting a blob exhibit the same behavior?

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.