[jboss-jira] [JBoss JIRA] (WFCORE-2403) CS tool, omitting required param leads to NPE
Darran Lofthouse (JIRA)
issues at jboss.org
Fri Jul 7 09:49:02 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-2403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darran Lofthouse resolved WFCORE-2403.
--------------------------------------
Fix Version/s: 3.0.0.Beta29
Resolution: Done
> CS tool, omitting required param leads to NPE
> ---------------------------------------------
>
> Key: WFCORE-2403
> URL: https://issues.jboss.org/browse/WFCORE-2403
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Reporter: Martin Choma
> Assignee: Darran Lofthouse
> Priority: Blocker
> Labels: credential-store
> Fix For: 3.0.0.Beta29
>
>
> Omitting required param leads to NPE, e.g. when adding alias without password (-p --password)
> {code}
> java -jar wildfly-elytron-tool.jar credential-store -a test_alis -x admin123 -c -u "cr-store://store-test-1?create=true" -salt 12345678 --iteration 230
> Exception in thread "main" java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
> at java.util.regex.Matcher.reset(Matcher.java:309)
> at java.util.regex.Matcher.<init>(Matcher.java:229)
> at java.util.regex.Pattern.matcher(Pattern.java:1093)
> at java.util.Formatter.parse(Formatter.java:2547)
> at java.util.Formatter.format(Formatter.java:2501)
> at java.io.PrintStream.format(PrintStream.java:970)
> at java.io.PrintStream.printf(PrintStream.java:871)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:58)
> {code}
> Help does not document required options. If required option is ommited user is not informed about which parameter is missing. So effectivelly user have no way to find out required parameters.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list