Bug 126062 - Save to disconnected shared folder is unfriendly, and shows strange errors
Summary: Save to disconnected shared folder is unfriendly, and shows strange errors
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 142171 (view as bug list)
Depends on:
Blocks: Network
  Show dependency treegraph
 
Reported: 2019-06-24 01:18 UTC by Aron Budea
Modified: 2023-11-17 09:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2019-06-24 01:18:02 UTC
- Open a file from a Windows shared folder.
- Severe the connection between the two computers (I just shut down the one with the share).
- Try to save the file.

=>
First what I'd like to see:
- If the save is to a network location (if that can be established), show a dialog that it's trying to establish connection, and let the user cancel it.
- After X seconds (10? 20? configurable parameter?) time out with an error, ask the user if they want to try again, if they do, attempt again with a longer, ~1-minute timeout.

What happens:
1. In 6.3 beta1 and a master debug build

The UI freezes, and after a minute you get a dialog:
"[Document Has Been Changed by Others]
The file has been changed since it was opened for editing in LibreOfficeDev. Saving your version of the document will overwrite changes mage by others.
Do you want to save anyway?"
=> Save Anyway

"[Error]
Error saving the document <file name>:
The operation on <file name with path> was started with an invalid parameter."
=> OK

The dialog stays, in the master build after a few more OKs, you get a debug error: abort() has been called.

In the 6.3 beta1 build, after ~3 OKs, you get a new dialog:
"[Document Could Not Be Locked]
The lock file could not be created for exclusive access by LibreOfficeDev, due to missing permission to create lock file on that location or lack of free disk space."
=> Open Read-Only

After a few seconds, there is the following error dialog:
"[Error]
Error saving the document <file name>:
Write Error.
The file could not be written."
=> OK

You are finally returned to the document.


2. In 5.0.0.5

The first result is the same ('Document Has Been Changed by Others').
However, after choosing 'Save Anyway', the second dialog is:
"Error saving the document <file name>:
The path <path> does not exist."

The next dialog is the error complaining about invalid parameter, and finally you are returned to the document.
Comment 1 Xisco Faulí 2020-02-18 16:53:10 UTC
Hi Aron,
is this issue still reproducible in master a build ?
Comment 2 Aron Budea 2020-03-31 05:10:39 UTC
Hi Xisco,
Right now in Linux (accessing a Windows computer's share) it simply freezes, both with a fresh 7.0 master build and with 6.3.5.2. It stays frozen until I restore the connection, and then it resumes like nothing out of the ordinary happened. The same happens in the file browser (GNOME Files), btw. I think I originally tested Windows -> Windows access.
Comment 3 Xisco Faulí 2020-11-18 15:26:38 UTC
I guess we can move this to NEW
Comment 4 QA Administrators 2022-11-19 03:35:26 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2023-11-17 09:38:07 UTC
*** Bug 142171 has been marked as a duplicate of this bug. ***