Skip to content

StorageRpc.open not setting the correct match parameters #200

@mziccard

Description

@mziccard

The following code:

storage.writer(BlobInfo.builder("bucket", "name").generation(42L).build(), 
  Storage.BlobTargetOption.generationMatch());

issues a POST request to the URL:

https://www.googleapis.com/upload/storage/v1/b/bucket/o?uploadType=resumable&name=name&ifGenerationNotMatch=42

where ifGenerationNotMatch instead of ifGenerationMatch is set.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions