-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Atlas
-
Labels:
-
3
If a user is specified with --user but no --password is given, or if the --password is an empty string, then the tools will prompt for the password. However, if stdin is not a terminal, it will attempt to read the password from stdin without prompting. That means if the user pipes input to the tool on stdin, we will try to read the password from it.
We should document this behavior, and anywhere that we refer to passing input via stdin, we should tell the user that this does not work properly when the password is not somehow provided. Note that this also applies to the --sslPEMKeyPassword parameter as well.
I'm not clear on whether we should document this behavior of reading the password from stdin. AFAICT, this is not documented anywhere currently, but the tools will log the fact that they do this. I think for now let's not document this, but just document that the password prompting won't work when other input is passed to stdin.