Skip to content

Storage.copy not failing on source (meta)generation mismatch #195

Closed
@mziccard

Description

@mziccard

The following code:

Storage.CopyRequest req = new Storage.CopyRequest.Builder()
  .source(bucket, sourceBlobName)
  .target(destinationBlob)
  .sourceOptions(Storage.BlobSourceOption.generationMatch(42L))
  .build();
storage.copy(req);

Is not throwing an exception if the source blob generation is not 42.

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