Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-168

Make ARender disabled when missing configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: nuxeo-11.0.0
    • Component/s: ARender

      Description

      Starting a Nuxeo server with ARender without setting the ARender configuration makes the com.nuxeo.ecm.arender service unstarted and so block the server in strict mode.

      2019-10-18T14:26:11,508 ERROR [ComponentManager] Component service:com.nuxeo.ecm.arender notification of application started failed: Secret is null or empty, you need to define it
      java.lang.RuntimeException: Secret is null or empty, you need to define it
      	at com.nuxeo.ecm.arender.core.ARenderComponent.start(ARenderComponent.java:58) ~[nuxeo-arender-core-11.0.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:381) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:709) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:691) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:792) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:447) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:462) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
      

      If there is missing configuration, ARenderComponent should log that the ARender service is not enabled and not break the server startup, even in strict mode.

      Log something like:

      log.warn("Missing ARender configuration: ARender disabled");
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 2 hours
                  2h