[ 
https://issues.apache.org/jira/browse/HADOOP-19242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878542#comment-17878542
 ] 

ASF GitHub Bot commented on HADOOP-19242:
-----------------------------------------

zhouaoe commented on code in PR #6967:
URL: https://github.com/apache/hadoop/pull/6967#discussion_r1740638321


##########
hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java:
##########
@@ -211,4 +211,8 @@ private Constants() {
   public static final String LIST_VERSION = "fs.oss.list.version";
 
   public static final int DEFAULT_LIST_VERSION = 2;
+
+  // oss redirect
+  public static final String REDIRECT_ENABLE_KEY = "fs.oss.redirect.enable";

Review Comment:
   > add javadocs with `{@value}` to show the value...really helps in IDE use
   
   OK。I will add javadocs in the next commit。





> AliyunOSS: Add a feature to disable redirection for the OSS connector.
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-19242
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19242
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs/oss
>    Affects Versions: 3.1.0, 3.3.2
>            Reporter: zhouao
>            Priority: Major
>              Labels: pull-request-available
>
> For security reasons, some users of the OSS connector wish to disable the 
> connector's HTTP redirection functionality. The OSS Java SDK have the 
> capability to turn off HTTP redirection, but the configuration is not exposed 
> in the {{core-site.xml}} file. This change primarily involves adding a flag 
> to disable HTTP redirection in the {{core-site.xml}} file



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to