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

Use document user change token for WOPI file version

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF42, 11.x, 2021.2
    • Component/s: WOPI
    • Release Notes Summary:
      The user change token is used as WOPI item version.
    • Backlog priority:
      750
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #28
    • Story Points:
      3

      Description

      The blob digest is currently used for the WOPI file version. However, the WOPI documentation states:

      This value must change when the file changes, and version values must never repeat for a given file.

      The file version value will change if the blob is updated, but if an old blob is set back, the value will repeat.

      Using the document user change token should fix the issue as the value won't repeat for a given document.

      The user change token is updated when Office Online calls the PutFile operation.

      Update both:

      • the Version value CheckFileInfo endpoint
      • the X-WOPI-ItemVersion header returned by the PutFile endpoint

      This change could be tested on
      https://nuxeo-test-wopi-demo.platform.dev.nuxeo.com/nuxeo/
      https://nuxeo-prod-wopi-demo.platform.dev.nuxeo.com/nuxeo/

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 1 day
                1d

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.