-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files sometimes do not get opened immediately on internal links #3815
Comments
cc'ing as requested: @mmeeks @karlitschek |
We are running 28.0.8 and can still confirm the issue is happening sometimes. |
I had a chat with @susnux about this and this seems to be a design flaw of the viewer api registering the file type handlers too late. He will think about a possible workaround. |
@susnux I looked a bit further into it while fixing a regression with 30 nextcloud/server#47014 I still have not managed to trigger this race condition locally. I tried to think about a way to fake this timing issue but cannot figure out how I could manually delay the viewer registration like it is happening on those affected systems. But thought about a workaround like this, kind of deferring the handleOpenFile until the DOMContentLoaded event from viewer has registered the file actions.
|
This I would say makes sense, though it would cause visual delays on slow connection. But should be a good fix. |
Thanks Julius - this plagues me many times per day =) |
Steps to reproduce
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?The text was updated successfully, but these errors were encountered: