Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10661

Ineffective user/passsword check in FTPFileSystem#initialize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      Here is related 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");
            }
      

      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.

      Attachments

        1. HADOOP-10661.patch
          1 kB
          Chen He
        2. HADOOP-10661.patch
          1 kB
          Chen He

        Activity

          People

            airbots Chen He
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: