-
Notifications
You must be signed in to change notification settings - Fork 118
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 =) |
Hello and thanks for the nextcloud/viewer#2486 @susnux! I see that @artonge has tried to backported with nextcloud/viewer#2490 to [stable29] but it seems there is the need to rebase it and there are some conflicts. If there is anything I can test please let me know. |
Thanks @artonge , I see it's not in! Good so it should be include in 28 and 29 release. The fix is include 3.0.1 (17 oct). @AnnaNazaryan : (to be confirmed) it seems in our staging it's still reproducible (30.0.2 RC1) cc: @jazevedo-coll |
@pedropintosilva what I have seen with our staging instance is: when opening an internal link on a browser with a clean cache and history and site settings, sometimes the file will not open and will just download instead. |
Is it possible that there is some async / defer / fetchpriority foo going on that sometimes perturbs the order of execution and initialization of the different JS modules themselves ? |
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: