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

Rework WOPIJsonEnricher

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: WOPI
    • Epic Link:
    • Tags:
    • Sprint:
      nxfit 10.3.5
    • Story Points:
      3

      Description

      Currently, the WOPIJsonEnricher does nothing if there is no file:content Blob or if it cannot be opened with Office Online.

      As we want to be able to open any document's blob supported by Office Online, we need to rework/rethink the enricher.

      Even if it is easy to compute the right URL for any blob with the base URL given by the enricher, it's not possible if there is no file:content blob or if it cannot be opened by Office Online.
      Moreover, the appName could be different for each blob.

      The format of the enricher could be:

      ...
      "wopi": {
        "file:content": {
          "view": "http://localhost:8080/nuxeo/wopi/view/default/22a28e55-a265-4c2f-b948-c12ed58bf5c1/file:content",
          "edit": "http://localhost:8080/nuxeo/wopi/edit/default/22a28e55-a265-4c2f-b948-c12ed58bf5c1/file:content",
          "appName": "PowerPoint",
          "locked": true|false
        },
        "files:files/0/file": {
          "view": "http://localhost:8080/nuxeo/wopi/view/default/22a28e55-a265-4c2f-b948-c12ed58bf5c1/file:content",
          "appName": "Excel",
          "locked": true|false
        },
        ...
      }
      ...
      

      Rework the Web UI module to leverage the new enricher.

        Attachments

          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 - 5 hours
                5h