Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7940

[Java Broker] JSON context substitution does not work with nested variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-broker-7.0.0
    • Broker-J
    • None

    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 ${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

      Attachments

        Issue Links

          Activity

            People

              rgodfrey Robert Godfrey
              rgodfrey Robert Godfrey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: