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

Ensure data directory is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.4.2-RC2, 5.4.2
    • Component/s: None
    • Upgrade notes:
      Hide

      Registration must be redone or move instance.clid from $TOMCAT_HOME/nxserver/data/ to your data directory.

      Show
      Registration must be redone or move instance.clid from $TOMCAT_HOME/nxserver/data/ to your data directory.

      Description

      There's some inconstancy in Environment class versus home and data directories.

      The following changeset is overriding the System property nuxeo.home.dir:
      nuxeo-runtime julien$ hg log -r 854
      changeset: 854:45ab45e3b72e
      date: Wed Oct 06 20:36:51 2010 +0200
      summary: NXP-5750 - exposing environment properties as system properties

      Because of:
      Properties sysprops = System.getProperties();
      sysprops.setProperty(NUXEO_HOME_DIR, home.getAbsolutePath());

      Involved data seem not to be critical (will be regenerated if missing).

      The culprit changeset changed behavior applied by the following changeset (there was no release between both):
      changeset: 784:db1ce55c994e
      branch: 1.7
      date: Fri Aug 06 18:22:43 2010 +0200
      summary: NXP-5370 - Tomcat distribution must use nuxeo.data.dir (including for binaries); NXP-5460 - JBoss distribution should use nuxeo.data.dir (like Tomcat) instead of jboss.server.data.dir

      We must check data management after upgrade.

      JBoss:
      nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls data/
      binaries contribs derby h2 packages resources themes
      nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls server/default/data/
      NXRuntime hypersonic jnp-service.url tx-object-store wsdl xmbean-attrs
      nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls server/default/data/NXRuntime/
      data repos schemas web

      Tomcat:
      nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls data/
      binaries contribs derby h2 packages resources themes
      nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls nxserver/
      data repos schemas web
      nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls nxserver/data/
      bundles.ids

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: