Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-331

SessionSettings variables remove \ during replacement

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.1, 1.3.2
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None

      Description

      Given the following Session Settings and system property fix.home=C:\fix\home. The value resolves to C:fixhome/logs instead of the expected C:\fix\home/logs.

      [DEFAULT]
      ...
      FileLogPath=$

      {fix.home}

      /logs
      ...

      To fix this add the following line to the SessionSettings.java file (after line 563):

      if (variableValue != null)

      { variableValue = variableValue.replaceAll("\\\\", "\\\\\\\\"); //this is the new line m.appendReplacement(buffer, variableValue); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jacob_northey Jacob Northey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: