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

Fix Studio hotreload when NUXEO_HOME is set with a symbolic link

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF24, 5.7.3
    • Component/s: Connect
    • Tags:
    • Backlog priority:
      600

      Description

      Unzip your Nuxeo under /opt/nuxeo-cap-5.6-tomcat
      Create a symbolic link from /opt/nuxeo-cap-5.6-tomcat to /opt/nuxeo
      Set NUXEO_HOME environment variable to /opt/nuxeo
      Start Nuxeo and try to hotreload a Studio package

      => this will fail because the system won't find the target bundle
      UpdateManager#getRollbackTarget(opts) will return null (JarUtils#findJar(File root, String key) cannot find the bundle under the symbolic path = root = Environment#initServerHome), so no component reload will be done

      This line will not be present while hot-reloading Studio package

      INFO  [ReloadComponent] Deploy done for bundle with name 'studio.extensions.xxx'.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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