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

Allow to override WOPI WebEngine module

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2021.0
    • Fix Version/s: 2023.0, 2021.37
    • Component/s: WOPI

      Description

      Add the "Nuxeo-AllowOverride: true" instruction to the MANIFEST.MF file in "nuxeo-wopi" module

      And fix the getClasses method with

      diff --git a/modules/platform/nuxeo-wopi/src/main/java/org/nuxeo/wopi/jaxrs/WOPIModule.java b/modules/platform/nuxeo-wopi/src/main/java/org/nuxeo/wopi/jaxrs/WOPIModule.java
      index b65af676f24..144ce78c0a2 100644
      --- a/modules/platform/nuxeo-wopi/src/main/java/org/nuxeo/wopi/jaxrs/WOPIModule.java
      +++ b/modules/platform/nuxeo-wopi/src/main/java/org/nuxeo/wopi/jaxrs/WOPIModule.java
      @@ -34,9 +34,7 @@ public class WOPIModule extends WebEngineModule {
       
           @Override
           public Set<Class<?>> getClasses() {
      -        Set<Class<?>> result = new HashSet<>();
      -        result.add(WOPIRoot.class);
      -        result.add(FilesEndpoint.class);
      +        Set<Class<?>> result = super.getClasses();
               return result;
           }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: