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.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.1.0.ER2
    • 7.1.0.DR18
    • Security
    • 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.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              hsvabek_jira Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: