Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2403

CS tool, omitting required param leads to NPE

XMLWordPrintable

      Omitting required param leads to NPE, e.g. when adding alias without password (-p --password)

      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)
      

      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.

            darran.lofthouse@redhat.com Darran Lofthouse
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: