SaketaChalamchala commented on code in PR #5123:
URL: https://github.com/apache/ozone/pull/5123#discussion_r1294950316
##########
hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/TestVirtualHostStyleFilter.java:
##########
@@ -106,7 +107,8 @@ public void testVirtualHostStyle() throws Exception {
".localhost:9878", "/myfile", null, true);
virtualHostStyleFilter.filter(containerRequest);
URI expected = new URI("http://" + s3HttpAddr +
- "/mybucket/myfile");
+ "/mybucket/myfile?" + S3Consts.ENDPOINT_STYLE_PARAM + "=" +
+ S3Consts.ENDPOINT_STYLE_VIRTUAL);
Review Comment:
Thanks for the review @errose28 I added the extra parameters are added
internally in VirtualHostStyleFilter.java so that when we do signature
validation late we know to use the original request URI sent by the client and
not the URI with bucket name that is appended in VirtualHostStyleFilter.java.
--
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]