Skip to content

Files sometimes do not get opened immediately on internal links #3815

@juliusknorr

Description

@juliusknorr

Steps to reproduce

  1. Have an internal link like /f/1234
  2. Open it in a browser (e.g. from clicking in an email)

Expected behaviour

The file should open

Actual behaviour

Sometimes the file doesn't open automatically and there is an error thrown. It seems happening more often with cleared browser cache.

Now the odd thing here is that the error is thrown before the viewer app is initialized, so there seems to be some kind of timing issue when trying to get the file actions for the requested file.

nextcloud/server#45586 would help with the error but I cannot see how it would solve the file then just not opening up.

I have not managed to reproduce this locally on any of the versions, but tech-preview is affected (currently on 29.0.0) and another instance on 28.0.6 (both should be upgraded 🙈 )

@susnux Do you have any idea on why the order in which the handleOpenFile and the viewer registrations would be executed might differ?

Screenshot 2024-07-09 at 10 05 21 Screenshot 2024-07-09 at 10 06 15

Sub-issues

Metadata

Metadata

Assignees

Labels

1. to developWaiting for a developerbugSomething isn't working

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions