You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/09/02 09:49:00 UTC
[jira] [Commented] (HADOOP-19242) AliyunOSS: Add a feature to disable redirection for the OSS connector.
[ https://issues.apache.org/jira/browse/HADOOP-19242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878538#comment-17878538 ]
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 optimize the code.
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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org