[jboss-jira] [JBoss JIRA] (AS7-5061) add-user utility reports "No java.io.Console available to interact with user." when used silently with su and piped to a file.
Tom Jenkinson (JIRA)
jira-events at lists.jboss.org
Mon Sep 10 13:25:33 EDT 2012
[ https://issues.jboss.org/browse/AS7-5061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717168#comment-12717168 ]
Tom Jenkinson commented on AS7-5061:
------------------------------------
Will do, but the fix version of this Jira includes "7.2.0.Alpha1" (i.e. the version I am using) and it doesn't work with that version so I didn't want to have say an open (unresolved) and closed Jira for the same version with the same problem.
> add-user utility reports "No java.io.Console available to interact with user." when used silently with su and piped to a file.
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-5061
> URL: https://issues.jboss.org/browse/AS7-5061
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, Security
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Samuel Doyle
> Assignee: Darran Lofthouse
> Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
>
>
> ./add-user.sh dustin dustin1 does not work anymore. In previous versions it worked. It has to do with the "theConsole" object being null.
> In the same breadth, the --silent=true option in add-user.sh does not work anymore. Again has to do with the need for "theConsole" object being null.
> The --silent=true option was added because in some environments, System.console() returns null[for example when the Izpack installer calls that script] and the add-user.sh script breaks because of its dependence on System.console() object to print stuff.
> [the "theConsole" object calls the System.console() object]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list