In this release of JBoss EAP 6, the `add-user.sh` script will fail with an `IllegalStateException`.
This bug presents when Java processes are executed in Cygwin becuase there is no java.io.Console available, meaning there is no API available to read a masked password.
It is expected to be resolved in a future release of the product.
Description of problem:
Trying to use add-user.sh script with cygwin gives me IllegalStateException.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. use ./add-user.sh with cygwin
cygpath: can't convert empty path
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Add-user dialogue will appear.
This one is continue of BZ1057625
duplicate of bug 1056130
see also bug 1057625 and bug 1027165
Darran, can you please look into it? Thanks!
Investigating this one further the error message does actually appear to be correct, when Java processes are executed in cygwin there is no java.io.Console available to us - this means we have no API available to read a masked password.
One option could be to see if add-user can be ported to AESH which is already used by the CLI and has password masking capabilities, the problem however is that it would be too large a change to make into EAP 6.3 and as this error means cygwin has never worked I would be more inclined to class it as an RFE for that level of change.
However there is one pre-Java 6 solution that involves a second thread to mask the input, I am going to review if this can be combined with using a Scanner to mask input without needing the second thread.
But if that does not work at this time this issue may need a NACK.
The changes required to achieve this are too large, if we want to add support for Cygwin it will need to be an RFE.
Moving Target Release to 6.3.1 to ensure this gets picked up in the 6.3.0 Release Notes as a Known Issue.
Darran, if this has an impact on your workflow, feel free to change it back once the 6.3.0 GA docs have been published.