[
https://issues.apache.org/jira/browse/HADOOP-19242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878547#comment-17878547
]
ASF GitHub Bot commented on HADOOP-19242:
-----------------------------------------
zhouaoe commented on code in PR #6967:
URL: https://github.com/apache/hadoop/pull/6967#discussion_r1740632307
##########
hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSFileSystemStore.java:
##########
@@ -147,6 +147,13 @@ public void initialize(URI uri, Configuration conf, String
user,
throw new IllegalArgumentException(msg);
}
+ boolean redirectEnable = conf.getBoolean(REDIRECT_ENABLE_KEY,
+ REDIRECT_ENABLE_DEFAULT);
+ if (!redirectEnable) {
Review Comment:
1 I will simplify the code to clientConf.setRedirectEnable(redirectEnable)
2 yes,the OSS SDK defaults the redirect setting to true
> 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]