Skip to content
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

Store the MPU ETag for the transient blobstore #118

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

timuralp
Copy link
Contributor

@timuralp timuralp commented Aug 4, 2021

JCLOUDS-1582: fixes a bug in the transient blobstore where after
uploading a multipart upload, GET/HEAD returns the hash of the content,
rather than the MPU ETag.

if (blob.getMetadata() != null) {
eTag = blob.getMetadata().getETag();
}
if (eTag == null || !MPU_ETAG_FORMAT.matcher(eTag).matches()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to sanity check the format? Is there a danger to allowing an arbitrary input?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair. Removed the format check.

JCLOUDS-1582: fixes a bug in the transient blobstore where after
uploading a multipart upload, GET/HEAD returns the hash of the content,
rather than the MPU ETag.
@gaul gaul merged commit a1df0bb into apache:master Aug 5, 2021
@gaul
Copy link
Member

gaul commented Aug 5, 2021

Thank you for your contribution @timuralp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants