[
https://issues.apache.org/jira/browse/QPID-7940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Godfrey updated QPID-7940:
------------------------------
Description:
A context value of the form \$\{json:FOO\} is intended to escape the value of
FOO to be usable within a JSON string, however if the value of
{noformat}${FOO}{noformat} interpolates first into ${BAR} then the json
substitution is not applied to the interpolated value of ${BAR}.
Since ${qpid.work_dir} is now defined as defaulted to ${QPID_WORK} and the
default for a JsonVirtualHostNode.getPreferenceStoreAttributes() contains
"${json:qpid.work_dir}", and a (Windows) directory is likely to contain
characters needing escaping... The broker currently doesn't work on Windows
with a JsonVirtualHostNode
was:
A context value of the form ${json:FOO} is intended to escape the value of FOO
to be usable within a JSON string, however if the value of ${FOO} interpolates
first into ${BAR} then the json substitution is not applied to the interpolated
value of ${BAR}.
Since ${qpid.work_dir} is now defined as defaulted to ${QPID_WORK} and the
default for a JsonVirtualHostNode.getPreferenceStoreAttributes() contains
"${json:qpid.work_dir}", and a (Windows) directory is likely to contain
characters needing escaping... The broker currently doesn't work on Windows
with a JsonVirtualHostNode
> [Java Broker] JSON context substitution does not work with nested variables
> ---------------------------------------------------------------------------
>
> Key: QPID-7940
> URL: https://issues.apache.org/jira/browse/QPID-7940
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Rob Godfrey
> Assignee: Rob Godfrey
>
> A context value of the form \$\{json:FOO\} is intended to escape the value of
> FOO to be usable within a JSON string, however if the value of
> {noformat}${FOO}{noformat} interpolates first into ${BAR} then the json
> substitution is not applied to the interpolated value of ${BAR}.
> Since ${qpid.work_dir} is now defined as defaulted to ${QPID_WORK} and the
> default for a JsonVirtualHostNode.getPreferenceStoreAttributes() contains
> "${json:qpid.work_dir}", and a (Windows) directory is likely to contain
> characters needing escaping... The broker currently doesn't work on Windows
> with a JsonVirtualHostNode
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]