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

MongoDB connection string options need escaping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10-HF13
    • Fix Version/s: 8.10-HF15, 9.3
    • Component/s: Core MongoDB
    • Release Notes Summary:
      Escape string options for MongoDB connection
    • Sprint:
      nxcore 9.3.5
    • Story Points:
      1

      Description

      Nuxeo Cloud is using Mongo Atlas. Mongo provides a connection string with important options separated with a "&".

      The example in nuxeo.conf

      nuxeo.mongodb.server=mongodb://nuxeo:<PASSWORD>@opstest1-shard-00-00-aluag.mongodb.net:27017,opstest1-shard-00-01-aluag.mongodb.net:27017,opstest1-shard-00-02-aluag.mongodb.net:27017/nuxeo?ssl=true&replicaSet=OpsTest1-shard-0&authSource=admin
      

      the connection string is properly escaped in ../nxserver/config/default-repository-config.xml

      but not in ../nxserver/config/mongodb-directories-config.xml

      This prevents the server from starting properly

      Can we get the same escaping in ../nxserver/config/mongodb-directories-config.xml and any other file that uses the connection string.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h