Hynek Švábek created ELY-1125:
---------------------------------
Summary: WildFly Elytron Tool, Omitting --location leads to wrong credential
store storage file in tool output and in summary output.
Key: ELY-1125
URL:
https://issues.jboss.org/browse/ELY-1125
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
Omitting --location leads to wrong credential store storage file in tool output and in
summary output.
In this case when is omitted --location
* tool output contains credential store storage file name with "enc-dir" path
prefix.
* summary output contains in location double slash in case of enc-dir value ends by slash
*Expected behaviour:*
Tool output must show only storage file name.
Summary output must not contain double slash in location
*How to reproduce*
Download all attachments to same location as wildfly-elytron-tool.jar
option --location must be omitted, --enc-dir must end by slash.
{code}
[hsvabek@dhcp-10-40-5-100 003]$ java -jar wildfly-elytron-tool.jar vault --enc-dir ./
--keystore server.store --keystore-password secretsecret --alias jboss -f
Vault (enc-dir="./";keystore="server.store") converted to credential
store ".//converted-vault.cr-store"
Vault Conversion summary:
--------------------------------------
Vault Conversion Successful
CLI command to add new credential store:
/subsystem=elytron/credential-store=cs:add(relative-to=jboss.server.data.dir,location=".//converted-vault.cr-store",implementation-properties={},credential-reference={clear-text="MASK-13KrO2ZNhwNg3UxmIt.02D;12345678;23"})
{code}
Now you can see *".//converted-vault.cr-store"* on tool output right value is
*"converted-vault.cr-store"*
and location=*".//converted-vault.cr-store"* in summary output for which is
correct value *"./converted-vault.cr-store"*.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)