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

Fix multi valued JAVA system property on Windows in nuxeo.conf

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Multi-valued Java system properties are correctly handled in nuxeo.conf on Windows
    • Backlog priority:
      600
    • Upgrade notes:
      Hide

      The multi-valued properties, like -Dkey="value1 value2", can be parsed properly by NuxeoCTL in Windows.

      Show
      The multi-valued properties, like -Dkey="value1 value2", can be parsed properly by NuxeoCTL in Windows.
    • Sprint:
      NOS 9.3.6
    • Story Points:
      5

      Description

      For instance, when specifying in nuxeo.conf for a LDAP connection:

      JAVA_OPTS=$JAVA_OPTS -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl" -Dcom.sun.jndi.ldap.connect.pool.authentication="none simple DIGEST-MD5"
      

      there are errors at server startup:

      F:\JAVA_APPS\LTS_2016\nuxeo-server-8.10-tomcat\bin>nuxeoctl.bat
      Found NUXEO_CONF = F:\JAVA_APPS\LTS_2016\nuxeo-server-8.10-tomcat\bin\nuxeo.conf
      Found JAVA_HOME = C:/Program Files/Java/jdk1.8.0_112
      Using JAVA = C:/Program Files/Java/jdk1.8.0_112\bin\java.exe
      ssl"  -Dcom.sun.jndi.ldap.connect.pool.authentication="none was unexpected at this time.
      F:\JAVA_APPS\LTS_2016\nuxeo-server-8.10-tomcat\bin>nuxeoctl.bat
      Found NUXEO_CONF = F:\JAVA_APPS\LTS_2016\nuxeo-server-8.10-tomcat\bin\nuxeo.conf
      Found JAVA_HOME = C:/Program Files/Java/jdk1.8.0_112
      Using JAVA = C:/Program Files/Java/jdk1.8.0_112\bin\java.exe
      ssl\"  -Dcom.sun.jndi.ldap.connect.pool.authentication="none was unexpected at this time.
      

      It is the same when using single quotes.

      As a direct result, the LDAP connection is not pooled and it affects performances. It is even more obvious in the context of Web UI, returning a search result of 40 documents with fetched properties HTTP header tries to authenticate hundreds of time. Hence very poor performances.

        Attachments

          Issue Links

            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 day, 2 hours, 35 minutes
                  1d 2h 35m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.