Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31197

Fix unescape of backslash of variable's value in nuxeo.conf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.2
    • Fix Version/s: 2023.0, 2021.27
    • Component/s: Configuration
    • Release Notes Summary:
      Backslash are correctly escaped in nuxeo.conf
    • Backlog priority:
      750
    • Sprint:
      nxplatform #71
    • Story Points:
      2

      Description

      When defining a variable whose value contains a double-backslash in nuxeo.conf, the variable gets redefined in the END block with a value containing only a single backslash.

      How to reproduce:

      • unzip a 2021 Nuxeo distribution and install hot fix 2021-HF02
      • add the following variable at the beginning of file nuxeo.conf:
        nuxeo.var1=\\nuxeo
        
      • execute command nuxeoctl configure

      Expected result: the following block is added to the nuxeo.conf file:

      ### BEGIN - DO NOT EDIT BETWEEN BEGIN AND END ###
      server.status.key=********
      ### END - DO NOT EDIT BETWEEN BEGIN AND END ###
      

      Actual result: the following block is added to the nuxeo.conf file, see the redefinition of variable nuxeo.var with a different value:

      ### BEGIN - DO NOT EDIT BETWEEN BEGIN AND END ###
      nuxeo.var1=\nuxeo
      server.status.key==********
      ### END - DO NOT EDIT BETWEEN BEGIN AND END ###
      

      This issue started with hot fix 2021-HF02.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: