Skip to content

GoogleCloudStorage::copy overwrite semantics are flipped. #712

@james-rms

Description

@james-rms

Describe the bug
GoogleCloudStorage::copy_opts gets the CopyMode behavior backwards - it forbids overwrites on CopyMode::Overwrite and allows them on CopyMode::Create.

To Reproduce
Create two objects in a GCS bucket, create a google cloud storage client, and copy from one to the other with CopyOptions { copy_mode: CopyMode::Overwrite, ..Default::default() }. This should succeed, but it fails with Error::AlreadyExists.

Expected behavior
one object is copied over the other.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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