Skip to content

ECR: attributes are url-encoded #3038

Open
@zerkms

Description

@zerkms

Acknowledgements

Describe the bug

ECR image scan findings include ImageScanFinding.Attributes field, that contains arbitrary key values.

The problem is that those key-values are url-encoded.

Eg:

package_name: libxml2
package_version: 2.9.14%2Bdfsg-1.3%7Edeb12u1

See the version contains %7E.

I believe SDK should hide all encoding-decoding from the library user and provide ready to use data.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

package_name: libxml2
package_version: 2.9.14+dfsg-1.3~deb12u1

Current Behavior

package_name: libxml2
package_version: 2.9.14%2Bdfsg-1.3%7Edeb12u1

Reproduction Steps

Obtain image scan findings types.ImageScanFindings and read its Attributes

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2 v1.36.3
github.com/aws/aws-sdk-go-v2/config v1.29.9
github.com/aws/aws-sdk-go-v2/credentials v1.17.62
github.com/aws/aws-sdk-go-v2/service/ecr v1.43.0
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17

Compiler and Version used

1.24.1

Operating System and version

Ubuntu 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-reproductionThis issue needs reproduction.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions