nextcloud / nextcloud/viewer

Viewer will not open current version after showing old version

Open
#3,052 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug regression
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Describe the bug
When clicking the current version in the versions tab nothing happens.

https://github.com/user-attachments/assets/8c49a0b6-8a51-48f0-82d3-e73a242be5a5

To Reproduce
Steps to reproduce the behavior:

  1. Go to a file with multiple versions.
  2. Open the versions tab.
  3. Open an old version.
  4. Try to open the current version.

Expected behavior

The current version is shown in the viewer.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Viewer open is called with only a path. I suspect that's why it does not change the file info which would include the version.

Additional context

This is on current main branch of server, viewer and text.
Observed in a playwright test in text: https://github.com/nextcloud/text/actions/runs/21130755060/job/60761050636?pr=8170

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the sequence in a file with multiple versions: open an old version from the versions tab, then select the current version. Read the viewer-open path and the linked Playwright test in nextcloud/text to trace how file information and versions are passed. Done means the current version opens in the viewer after an old version was shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.