Skip to content

"Document loading failed" when clicking on the most-recently-saved version in "Versions" when already open #5903

Description

@caolanm

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Load an existing document in Collabora Online
  2. Make a change and save
  3. Use "share" and go to "Versions"
  4. The most recently saved version will be listed as e.g. "You 4 seconds ago"
  5. Click that version
  6. Document loading failed

Expected behavior
The most recent version, which is presumably not "versioned" but is just the normal document, should be presented

Screenshots
Image

Nextcloud log (richdocuments), 09:01:36 UTC:

getFile failed: /246facfc-.../files_versions/whatever.ods.v1784796246
Exception: OCP\Files\NotFoundException
userAgent: COOLWSD HTTP Agent 26.04.2.2snapshot

Stack: WopiController::getFile -> IVersionManager::getVersionFile ->
LegacyVersionsBackend::getVersionFile -> Folder::get (throws
NotFoundException).

Collabora coolwsd log, same moment (16 identical retries, 09:01:36 to
09:02:00 UTC):

WOPI::GetFile [https://.../richdocuments/wopi/files/2829613_ocytfm4ehh09_whatever/contents?access_token=&access_token_ttl=0&permission=readonly] failed with Status Code: 403 (Forbidden)

Server details

Nextcloud version:
Nextcloud 33.0.6.2

Version of the richdocuments app
richdocuments 12.0.0

Version of Collabora Online
Collabora Online / COOLWSD 26.04.2.2snapshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions