adoroszlai commented on code in PR #6519:
URL: https://github.com/apache/ozone/pull/6519#discussion_r1566187178
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java:
##########
@@ -709,7 +710,10 @@ private void addKey(ListObjectResponse response, OzoneKey
next) {
keyMetadata.setKey(EncodingTypeObject.createNullable(next.getName(),
response.getEncodingType()));
keyMetadata.setSize(next.getDataSize());
- keyMetadata.setETag("" + next.getModificationTime());
+ String eTag = next.getMetadata().get(ETAG);
+ if (eTag != null) {
+ keyMetadata.setETag(eTag);
Review Comment:
In the AWS page it is interesting that both `Key` and `ETag` are defined as
`string`, but only that latter has quotes as part of the value.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]