ivandika3 commented on code in PR #8299:
URL: https://github.com/apache/ozone/pull/8299#discussion_r2049929222
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/CompleteMultipartUploadRequest.java:
##########
@@ -51,10 +51,10 @@ public void setPartList(List<Part> partList) {
@XmlRootElement(name = "Part")
public static class Part {
- @XmlElement(name = "PartNumber")
+ @XmlElement(name = "PartNumber", namespace = OzoneConsts.S3_NAMESPACE_URL)
Review Comment:
Could you help check whether we can simply set the namespace to the
enclosing class's `@XmlRootElement` (i.e `@XmlRootElement(name = "Part",
namespace = ""http://s3.amazonaws.com/doc/2006-03-01/")`?
If so, we only need to modify the `@XmlRootElement` annotations and there is
no need to change the `@XmlElement` annotations.
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java:
##########
@@ -277,6 +277,7 @@ public final class OzoneConsts {
public static final String S3_GETSECRET_USER = "S3GetSecretUser";
public static final String S3_SETSECRET_USER = "S3SetSecretUser";
public static final String S3_REVOKESECRET_USER = "S3RevokeSecretUser";
+ public static final String S3_NAMESPACE_URL =
"http://s3.amazonaws.com/doc/2006-03-01/";
Review Comment:
I think we can reuse the existing `S3Consts.S3_XML_NAMESPACE ` instead and
remove this.
--
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]