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

(7.3.z) ELY-1953 - Elytron tool command execution fails with java.nio.file.NoSuchFileException

XMLWordPrintable

    • +
    • Hide
      $ export ELYTRON_TOOL_ADDONS=/home/someuser/customcredstoreprovider.jar # this is a jar implementing a custom credential store, made of a provider and a store implementation, see attached files
      $ cd  jboss-eap-7.3/bin
      $ ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l testStore.jceks --type CustomTestCredentialStore --debug
      Alias "secret_alias" has been successfully stored
      $ cd  jboss-eap-7.4/bin
      $ ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l testStore.jceks --type CustomTestCredentialStore --debug
      testStore.jceks (No such file or directory)
      Exception encountered executing the command:
      java.nio.file.NoSuchFileException: testStore.jceks
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:218)
      	at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:207)
      	at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:92)
      	at java.nio.file.Files.readAttributes(Files.java:1964)
      	at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:247)
      	at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
      
      Show
      $ export ELYTRON_TOOL_ADDONS=/home/someuser/customcredstoreprovider.jar # this is a jar implementing a custom credential store, made of a provider and a store implementation, see attached files $ cd jboss-eap-7.3/bin $ ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l testStore.jceks --type CustomTestCredentialStore --debug Alias "secret_alias" has been successfully stored $ cd jboss-eap-7.4/bin $ ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l testStore.jceks --type CustomTestCredentialStore --debug testStore.jceks (No such file or directory) Exception encountered executing the command: java.nio.file.NoSuchFileException: testStore.jceks at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews $Posix .readAttributes(UnixFileAttributeViews.java:218) at sun.nio.fs.UnixFileAttributeViews $Posix .readAttributes(UnixFileAttributeViews.java:207) at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:92) at java.nio.file.Files.readAttributes(Files.java:1964) at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:247) at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)

      This is a regression in behavior of elytron-tool.sh with respect to 7.3.0.GA-CR4.
      Basically, it was noticed that some commands involving a custom credential store returned a exit code of 0 and no error when executed against 7.3.0.GA-CR4 distribution, while the same commands are failing with various error codes against 7.4.0.CD19-CR1.
      See Steps to Reproduce for an example.

              rhn-support-ivassile Ilia Vassilev
              rhn-support-ivassile Ilia Vassilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: