[jboss-jira] [JBoss JIRA] (WFCORE-3306) add-user.sh shouldn't throw AddUserFailedException if '%' character is used in user name

Aurel Pintea (JIRA) issues at jboss.org
Wed Sep 20 08:43:00 EDT 2017


Aurel Pintea created WFCORE-3306:
------------------------------------

             Summary: add-user.sh shouldn't throw AddUserFailedException if '%' character is used in user name
                 Key: WFCORE-3306
                 URL: https://issues.jboss.org/browse/WFCORE-3306
             Project: WildFly Core
          Issue Type: Bug
          Components: Security
            Reporter: Aurel Pintea
            Assignee: Aurel Pintea
            Priority: Minor


Original Issue Number: https://issues.jboss.org/browse/JBEAP-6637

*Description of problem:*
add-user.sh shouldn't throw AddUserFailedException if '%' character is used in user name. If other wrong character is used, AddUserFailedException is not thrown.

*How reproducible:*
Always.

*Steps to Reproduce:*
{noformat}
[mkopecky at localhost bin]$ ./add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : marek^

 * Error * 
WFLYDM0028: Username must be alphanumeric with the exception of the following accepted symbols (",", "-", ".", "/", "=", "@", "\")

Username (marek^) : marek%

 * Error * 
WFLYDM0028: Username must be alphanumeric with the exception of the following accepted symbols (",", "-", ".", "/", "=", "@", "\")

Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = ')'
	at java.util.Formatter.checkText(Formatter.java:2579)
	at java.util.Formatter.parse(Formatter.java:2565)
	at java.util.Formatter.format(Formatter.java:2501)
	at java.util.Formatter.format(Formatter.java:2455)
	at java.io.Console.format(Console.java:170)
	at java.io.Console.printf(Console.java:209)
	at org.jboss.as.domain.management.security.adduser.JavaConsole.printf(JavaConsole.java:54)
	at org.jboss.as.domain.management.security.adduser.PromptNewUserState.execute(PromptNewUserState.java:52)
	at org.jboss.as.domain.management.security.adduser.AddUser.run(AddUser.java:133)
	at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:240)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.modules.Module.run(Module.java:336)
	at org.jboss.modules.Main.main(Main.java:520)
[mkopecky at localhost bin]$ 
{noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list