Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87598

MSI installer enterprisebase SConscript variable not set to raw string

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Environment:
      Windows
    • Build
    • ALL

      A bunch of string literals in src/mongo/installer/msi/SConscript have embedded backslashes, since that's the path separator on Windows platforms. These use the python r'...' raw-string notation, to inhibit the normal backslash escape-code interpretation.

      However, enterprisebase was apparently accidentally missed, despite containing path separator backslashes. This leads to the message SyntaxWarning: invalid escape sequence '\m' when parsing this SConscript file with the Python AST parser.

      I think it's only ever worked because all the affected characters (m, d, e) aren't valid escape codes, and so get passed through unchanged (ie. by sheer fluke). It's been this way for a very long time, but I think it's still probably best to add the leading r.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: