[jboss-jira] [JBoss JIRA] (WFCORE-1980) Property file passed via CLI does not resolve expressions with relative path value in vault attributes

Chao Wang (JIRA) issues at jboss.org
Tue Nov 15 03:55:00 EST 2016


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

Chao Wang edited comment on WFCORE-1980 at 11/15/16 3:54 AM:
-------------------------------------------------------------

{noformat}
As the example uses vault.keystore.url=${jboss.server.config.dir}/vault/vault.keystore in vault.properties.

CLIExpressionResolver tries to recursively resolve expression ${vault.keystore.url} in command
/core-service=vault:add(vault-options=[("KEYSTORE_URL" => "${vault.keystore.url}"), ... ...

When it finds ${jboss.server.config.dir}/vault/vault.keystore in which jboss.server.config.dir can NOT be found in system properties in CLI side.
But it is a legal property in server side. 
Method resolveOrOriginal therefore catches UnresolvedExpressionException and returns the original value ${vault.keystore.url} for KEYSTORE_URL which causes the error.
{noformat}


was (Author: soul2zimate):
As the example uses vault.keystore.url=${jboss.server.config.dir}/vault/vault.keystore in vault.properties.

CLIExpressionResolver tries to recursively resolve expression ${vault.keystore.url} in command
/core-service=vault:add(vault-options=[("KEYSTORE_URL" => "${vault.keystore.url}"), ("KEYSTORE_PASSWORD" => "${vault.keystore.password}") ... ...

When it finds ${jboss.server.config.dir}/vault/vault.keystore in which jboss.server.config.dir can NOT be found in system properties in CLI side, but it is a legal property in server side. 
Method resolveOrOriginal therefore catches UnresolvedExpressionException and returns the original value ${vault.keystore.url} for KEYSTORE_URL which causes the error.

> Property file passed via CLI does not resolve expressions with relative path value in vault attributes
> ------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-1980
>                 URL: https://issues.jboss.org/browse/WFCORE-1980
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0.Alpha12
>            Reporter: Chao Wang
>            Assignee: Chao Wang
>            Priority: Minor
>
> Property file passed via CLI with --properties option does not resolve expressions in EAP 7, where in EAP 6 it works fine. 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list