[jboss-jira] [JBoss JIRA] (WFLY-8993) Incorrect path separator added to the end of the ENC_FILE_DIR property when defining a vault in Windows
Matthew Casperson (JIRA)
issues at jboss.org
Sun Jun 25 22:51:00 EDT 2017
Matthew Casperson created WFLY-8993:
---------------------------------------
Summary: Incorrect path separator added to the end of the ENC_FILE_DIR property when defining a vault in Windows
Key: WFLY-8993
URL: https://issues.jboss.org/browse/WFLY-8993
Project: WildFly
Issue Type: Bug
Affects Versions: 11.0.0.Alpha1
Reporter: Matthew Casperson
Assignee: Jason Greene
Priority: Minor
Executing this command:
{code:java}
/host=master/core-service=vault:add(vault-options={"KEYSTORE_URL" => "C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\keystore.vault", "KEYSTORE_PASSWORD" => "Password01", "KEYSTORE_ALIAS" => "vault", "SALT" => "12345678", "ITERATION_COUNT" => "50", "ENC_FILE_DIR" => "C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\vault"})
{code}
Will result in this element in the XML:
{code:xml}
</extensions>
<vault>
<vault-option name="KEYSTORE_URL" value="C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\keystore.vault"/>
<vault-option name="KEYSTORE_PASSWORD" value="MASK-223/wEo1GLELe8EuQa5u20"/>
<vault-option name="KEYSTORE_ALIAS" value="vault"/>
<vault-option name="SALT" value="12345678"/>
<vault-option name="ITERATION_COUNT" value="50"/>
<vault-option name="ENC_FILE_DIR" value="C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\vault/"/>
</vault>
{code}
Note the incorrect slash on the end of the ENC_FILE_DIR option. I assume this value is being normalised to include a trailing slash, but the wrong character is being selected on a Windows system.
WildFly seems quite happy with this incorrect character, but external tools reading this path have to account for the unexpected value.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list