Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
None
-
None
-
User Experience
-
Medium
Description
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:
[mkopecky@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@localhost bin]$