Skip to content

S3 copy example missing URL-encode #740

Closed
@worpet

Description

@worpet

The copySource(String copySource) method requires the source to be URL-encoded. According to the documentation:

The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded.

In the CopyObject.java example, this is not being done:

A casual test of the example code will appear to work, but it may fail later when you happen to have a key that contains an unsafe URL character.

Related to aws/aws-sdk-java-v2#1313.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions