Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-319

Use non relative repository paths in repository configuration files

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.1 Final
    • 2.1 Final
    • build
    • None

    Description

      Within the current version the repository configuration files (WEB-INF/config/repositories/xxx.xml) contain relative paths (../xxxx). Starting the tomcat application server in another directory than $TOMCAT_HOME/bin (eg. in directory $TOMCAT_HOME -> bin/catalina.sh run) will result in an error in the magnolia startup process, because Jackrabbit does not find the repository.

      As far as I know Jackrabbit supports variables in the configuration files (here ${rep.home} ) :
      <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
      <param name="path" value="${rep.home}/repository"/>
      </FileSystem>

      The default repository should be either configured to use that variables or handle the paths relativly to the web application directory.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgiust Fabrizio Giustina
              mzingg Markus Zingg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD