[jboss-jira] [JBoss JIRA] (AS7-3950) Add role handling with --silent mode into AddPropertiesUser (add-user.sh)

Guillaume Grossetie (JIRA) jira-events at lists.jboss.org
Thu May 10 06:21:17 EDT 2012


    [ https://issues.jboss.org/browse/AS7-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12691755#comment-12691755 ] 

Guillaume Grossetie commented on AS7-3950:
------------------------------------------

I'm working on master :
{code}
./add-user.sh ggrossetie abcd
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: Aucune java.io.Console disponible pour interagir avec l'utilisateur.
{code}

When the user provide two or three args the console is null and the code check :
{code:java}
if ((theConsole == null) && (stateValues.isSilent() == false)) {
    throw MESSAGES.noConsoleAvailable();
}
{code}

The --silent option seems to be ignored :
{code}
./add-user.sh ggrossetie abcd --silent
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: Aucune java.io.Console disponible pour interagir avec l'utilisateur.
{code}

{quote}
I am not sure silent by default would be a good change
{quote}
Me neither but can we instanciate a JavaConsole ?

                
> Add role handling with --silent mode into AddPropertiesUser (add-user.sh)
> -------------------------------------------------------------------------
>
>                 Key: AS7-3950
>                 URL: https://issues.jboss.org/browse/AS7-3950
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 7.1.0.Final
>            Reporter: Tomohisa igarashi
>             Fix For: Open To Community
>
>
> When I add a user using AddPropertiesUser with --silent, there is no way to handle the role of that user right now.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list