Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11163

Wildfly Elytron Tool, Wildfly Elytron Tool error output would contain error message rather than stacktrace.

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.1.0.DR18
    • Fix Version/s: 7.1.0.ER2
    • Component/s: Security
    • Labels:
      None

      Description

      Wildfly Elytron Tool error output would contain error message rather than stacktrace.

      I understand that it is very useful but the behaviour must be consistent with other apps, e.g.: jboss-cli.
      Now we have inconsistency even in this tool - half exceptions, half error messages.

      Here is example

      java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret secretpassword --location="test.store1"  --password secret_password --summary --salt 12345678 --iteration 230 --create -type=KeyStoreCredentialStore123
      Exception encountered executing the command:
      java.security.NoSuchAlgorithmException
              at org.wildfly.security.credential.store.CredentialStore.getInstance(CredentialStore.java:65)
              at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:157)
              at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:75)
      

      I suggest add application parameter --verbose (--debug, ...) which enables print stack trace when error occurs.

      By default there is expected only error message and with this parameter there will be printed stack trace.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ivassile Ilia Vassilev
                  Reporter:
                  hsvabek Hynek Švábek
                  Tester:
                  Hynek Švábek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: