[jboss-jira] [JBoss JIRA] (WFCORE-3009) Incorrect path separator added to the end of the ENC_FILE_DIR property when defining a vault in Windows

Jean-Francois Denise (JIRA) issues at jboss.org
Mon Jun 26 13:42:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426913#comment-13426913 ] 

Jean-Francois Denise commented on WFCORE-3009:
----------------------------------------------

I am surprised that "\" characters are properly handled in the file path. They should be escaped: e.g.: c:\\x\\y\\...). You can look at JBEAP-4412

What does echo-dmr prints for: echo-dmr <the operation> ?

Thanks.

> Incorrect path separator added to the end of the ENC_FILE_DIR property when defining a vault in Windows
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-3009
>                 URL: https://issues.jboss.org/browse/WFCORE-3009
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI, Domain Management, Security
>    Affects Versions: 3.0.0.Beta27
>            Reporter: Matthew Casperson
>            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