-
Notifications
You must be signed in to change notification settings - Fork 117
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
after closing a document the current directory is lost #644
Comments
|
I can confirm that this is an issue. |
|
I cannot reproduce that. @gary-kim Are you also on 16? Does it always happen? It could be some race condition with the file list reload and history handling that is done on close. |
|
Yes, I'm on 16. It always happens but sometimes, it still loads the correct contents of the directory while losing the directory path. So the breadcrumb will show root but the directory contents will be for the directory you were in. EDIT: Forgot to mention. I'm on Firefox, running richdocuments 3.4.2. I usually use a stable version of Libreoffice Online I compile but I have confirmed the issue also occurs with CODE. |
|
I have the same Problem but on Edge not Firefox, On Firefox it works fine for me. Very annoying for my Edge Users. Basically it happens file independent, your in a sub directory and once the document is closed it jumps back to the root directory, so you have to click through the hierarchy to get back where you were everytime. :( |
|
We have the same Problem. We are running Nextcloud 16.0.5, richdocuments 3.4.2 and Collabora 4.0.6. |
|
Same here with FF, but not with Brave nor Chromium, on Ubuntu 18.04 |
|
It has started on Firefox for me as well now. It started after update to FF 70.0.0. Now Chrome is the only Browser still working. Im in big trouble if it fails there to. Hope it wasnt a mistake to trust in Nextcloud. |
|
Same issue here, with some browser combinations. Not sure why, exactly. Will investigate further when I get a moment. 👍 |
|
We have two installations of Nextcloud on different servers: One with this issue, the other one not. They have nearly the same configuration and apps, the biggest difference: The working one runs on Apache with HTTP/1.1, the buggy one on Nginx with HTTP/2.0. I did a check in the network analysis of the developer tools of Firefox and there is a difference in the http calls: The buggy one does a double request to the root directory after closing the document. The working one sends this request only one time and to the right sub-directory, not the root directory. Hope, that'll help. If you need more information I'll try to provide more. |
|
It looks like this is a Firefox issue, not a HTTP1.1/2.0 issue. I've posted the headers for the AJAX requests that are triggered when File > Close Document is clicked. Firefox (Broken) When using Chrome, as noted by @g4rf above, there's only single XHR request to the parent directory rather than one to the parent directory and one to the user's home directory. |
|
Interestingly, it looks like Collabora is detecting Firefox as a mobile client. When closing a document in Firefox, * I'm sure of this, as const callMobileMessage = (messageName, attributes) => {
console.debug('callMobileMessage', messageName, attributes)
....
}It looks like it's triggering both the Edit (14/11/2019): Scratch that. Chrome doesn't log debug-level messages by default. These methods are in fact called the same on Firefox and Chrome. Back to the drawing board! :/ |
|
I do have this Problem on edge also, not sure if that means its the same code issue. |
To make it clear: I used the same Firefox (actual version on Ubuntu) to test the two nextcloud setups. On the Nginx one it made two requests to the users root, on the Apache one it made one request to the current directory. |
|
same issue nc 17 |
|
If I am not mistaken the problem comes from The Files app listens to popstate events and triggers urlChanged events, which cause the file list to change to the new directory. When the RichDocuments viewer is closed it first clears the state (the ?dir=/XXX&fileid=YYY part) of the URL (note that this does not trigger an onpopstate event) and then sets |
|
Thanks a lot @danxuliu for digging into that. The strange thing is that i still don't see the behaviour with the latest FF, but i could reproduce it with ESR indeed. Not sure what is wrong there. However removing fixes the issue and I cannot see a reason why this would still be needed, even from the original introducing commit d106de7 |
|
Thanks for releasing this as part of v3.4.5, @juliushaertl! |
|
just tested the update, all works again! Thanks to everyone! |
|
Thanks very much to all of you involved in this issue resolution! |




After closing collabora-online the current directory is lost and the user is back in it's home directory.
The address bar shows:
Before opening:
../nextcloud/index.php/apps/files/?dir=/X/Y&fileid=16766
While editing:
.../nextcloud/index.php/apps/files/?dir=/X/Y&fileid=16766
After closing:
.../nextcloud/index.php/apps/files/?dir=/&fileid=104
Client details:
firefox
Server details
Web server:
Apache 2.4
Database:
PHP version:
Nextcloud version:
16.0.4
Version of the richdocuments app
3.4.2
Version of Collabora Online
4.0.6
The text was updated successfully, but these errors were encountered: