Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9975

Startup.sh is setting PROJECT_HOME incorrectly when CDPATH is set

    Details

      Description

      Startup.sh is setting PROJECT_HOME incorrectly when the CDPATH variable is set in an environment.

      To reproduce this, do the following:

      export CDPATH='.:~' 
      cd $(mktemp -d) 
      unzip /path/to/IDM-5.5.0.zip 
      cd openidm/ 
      ./startup.sh -p samples/scripted-rest-with-dj/

      Executing ./startup.sh... 
      Using OPENIDM_HOME: /tmp/tmp.CkEcmDSVYc/openidm 
      Using PROJECT_HOME: /tmp/tmp.CkEcmDSVYc/openidm/samples/scripted-rest-with-dj 
      /tmp/tmp.CkEcmDSVYc/openidm/samples/scripted-rest-with-dj 
      Using OPENIDM_OPTS: -Xmx1024m -Xms1024m 
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/tmp/tmp.CkEcmDSVYc/openidm/conf/logging.properties 
      Dec 08, 2017 2:13:51 PM org.forgerock.openidm.core.FilePropertyAccessor loadProps 
      SEVERE: No properties file detected at /tmp/tmp.CkEcmDSVYc/openidm/samples/scripted-rest-with-dj 
      /tmp/tmp.CkEcmDSVYc/openidm/samples/scripted-rest-with-dj/conf/boot/boot.properties

      Note that PROJECT_HOME is set incorrectly (the line is duplicated) in startup.sh's output.

      As a workaround, you can "unset CDPATH" before running startup.sh.

        Attachments

          Activity

            People

            • Assignee:
              ben.apple Ben Apple
              Reporter:
              becky.maund Becky Maund
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: