Skip to content

eTag in s3 seems to have extraneous double quotes around the etag value #1537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
fnunezkanut opened this issue Feb 24, 2025 · 5 comments
Closed
1 task
Labels
closing-soon This issue will automatically close in 2 days unless further comments are made.

Comments

@fnunezkanut
Copy link

Describe the bug

Noticed this while debugging today

Not really a big issue as I can strip out the double quotes for now

Image

Image

Regression Issue

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

Expected behavior

Should not have extraneous double quotes around etag value

Current behavior

extra double quotes added around etag value

Steps to Reproduce

try to read the etag value of any GetObjectRequest

Possible Solution

No response

Context

No response

AWS SDK for Kotlin version

1.4.12

Platform (JVM/JS/Native)

JVM 17

Operating system and version

OSX Sequoia

@fnunezkanut fnunezkanut added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 24, 2025
@fnunezkanut
Copy link
Author

also in latest 1.4.27 of aws.sdk.kotlin:s3-jvm

@fnunezkanut
Copy link
Author

So i needed the etag value as part of the PutObjectRequest ifMatch=etag type workflow on subsequent update

https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-writes.html#conditional-write-etags

and that operation seems to be happy with an etag value that has the extra double quotes, and without it too

I guess can close this ticket if this is all part of the expected behaviour :) just thought it was strange that there are extra characters in etag

@0marperez
Copy link
Contributor

The eTag is read from the response headers directly. It seems like S3 just sends it back like that. Glad that everything works correctly though. Thanks for taking the time to report a possible bug! If there's nothing else I'll close the ticket.

@0marperez 0marperez added closing-soon This issue will automatically close in 2 days unless further comments are made. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 24, 2025
@lauzadis
Copy link
Member

Related to aws/aws-sdk-net#815

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 2 days unless further comments are made.
Projects
None yet
Development

No branches or pull requests

3 participants