hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10661) Ineffective user/passsword check in FTPFileSystem#initialize()
Date Wed, 27 May 2015 23:24:17 GMT

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

Chen He commented on HADOOP-10661:
----------------------------------

Sure, I will do it tonight. Thank you for remaindering me [~ted_yu].

> Ineffective user/passsword check in FTPFileSystem#initialize()
> --------------------------------------------------------------
>
>                 Key: HADOOP-10661
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10661
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Chen He
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-10661.patch, HADOOP-10661.patch
>
>
> Here is related code:
> {code}
>       userAndPassword = (conf.get("fs.ftp.user." + host, null) + ":" + conf
>           .get("fs.ftp.password." + host, null));
>       if (userAndPassword == null) {
>         throw new IOException("Invalid user/passsword specified");
>       }
> {code}
> The intention seems to be checking that username / password should not be null.
> But due to the presence of colon, the above check is not effective.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message