Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-2027 Support the Windows OS
  3. DISPATCH-2281

Dispatch confg refuses to load Windows paths with backslashes

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Tests
    • None

    Description

      15: 2021-11-06 21:03:49.699705 +0100 AGENT (error) Line 4 |"debugDumpFile": "C:\Users\Vitorio\CLionProjects\qpid-dispatch\cmake-build-debug-visual-studio-clang\tests\system_test.dir\system_tests_link_routes\Dispatch1428\setUpClass\A-qddebug.txt"}],
      [...]
      15: 2021-11-06 21:03:49.717249 +0100 ERROR (error) Python: Exception: Cannot load configuration file A.conf: Invalid \escape: line 4 column 21 (char 69
      

      The config loading procedure first transforms the config with regexes and then reads it as JSON

      15:   File "C:\Users\Vitorio\CLionProjects\qpid-dispatch\python\qpid_dispatch_internal\management\config.py", line 198, in _parse
      15:     sections = json.loads(js_text)
      

      The error seems to be the correct behavior. Windows paths will need to be escaped, or written with forward slashes (this works on contemporary Windows versions). The Dispatch tests will need to be fixed.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jdanek Jiri Daněk

            Dates

              Created:
              Updated:

              Slack

                Issue deployment