[jboss-jira] [JBoss JIRA] (WFLY-2141) Unexpected non-integer input in vault.sh causes error

RH Bugzilla Integration (JIRA) issues at jboss.org
Fri Sep 19 03:17:02 EDT 2014


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

RH Bugzilla Integration commented on WFLY-2141:
-----------------------------------------------

Ondrej Lukas <olukas at redhat.com> changed the Status of [bug 951011|https://bugzilla.redhat.com/show_bug.cgi?id=951011] from ON_QA to VERIFIED

> Unexpected non-integer input in vault.sh causes error
> -----------------------------------------------------
>
>                 Key: WFLY-2141
>                 URL: https://issues.jboss.org/browse/WFLY-2141
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Chao Wang
>            Assignee: Chao Wang
>            Priority: Minor
>             Fix For: 8.0.0.Beta1
>
>
> Execute bin/vault.sh, then input a non-integer parameter cause:
> {noformat}
> Exception in thread "main" java.util.InputMismatchException
> 	at java.util.Scanner.throwFor(Scanner.java:909)
> 	at java.util.Scanner.next(Scanner.java:1530)
> 	at java.util.Scanner.nextInt(Scanner.java:2160)
> 	at java.util.Scanner.nextInt(Scanner.java:2119)
> 	at org.jboss.as.security.vault.VaultTool.main(VaultTool.java:109)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.jboss.modules.Module.run(Module.java:292)
> 	at org.jboss.modules.Main.main(Main.java:455)
> {noformat}
> Because VaultTool.main() only scans next token of the input as an int, better catch the InputMismatchException and exit peacefully as default action.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list