[ https://issues.apache.org/jira/browse/SQOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052868#comment-14052868 ]
Jarek Jarcec Cecho commented on SQOOP-1294: ------------------------------------------- But what if the white space characters are valid part of the password? Should we include an ability to read the password unchanged? > Newline or EOL character detected by --password-file parameter > -------------------------------------------------------------- > > Key: SQOOP-1294 > URL: https://issues.apache.org/jira/browse/SQOOP-1294 > Project: Sqoop > Issue Type: Bug > Components: connectors, connectors/mysql, connectors/sqlserver > Affects Versions: 1.4.3 > Environment: Centos 6.5, CDH 4.5/4.6 with packaged Sqoop 1.4.3, ViM > 7.2 > Reporter: Devin Suiter > Labels: newbie > Attachments: SQOOP-1294.patch > > > When importing using the --password-file parameter, I've found that if I > create the file with the command 'vi filename', enter insert mode, type the > password, write, and quit, the password is not recognized. Single- and > double-quotes do not fix it. I've found that by running the command 'echo -n > password > filename' the password will be recognized. It seems that the > newline or EOL character is being read as part of the password. This has > occurred with the MySQL connector and the MSSQLjdbc4 connector. -- This message was sent by Atlassian JIRA (v6.2#6252)