Bug 152400 - Share spreadsheet: opening an already opened file after save will open it second time
Summary: Share spreadsheet: opening an already opened file after save will open it sec...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Opening
  Show dependency treegraph
 
Reported: 2022-12-06 14:22 UTC by Mike Kaganski
Modified: 2023-08-19 04:25 UTC (History)
3 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 Mike Kaganski 2022-12-06 14:22:48 UTC
Preparation:

a. Create a spreadsheet;
b. Save it as ODS;
c. Tools->Share Spreadsheet;
d. Check the "Share this spreadsheet with other users"->OK;
e. Confirm saving the file;
f. Close it.

Testing:

1. Using file manager, double-click the spreadsheet to open in Calc.
2. After it opens, confirm "The spreadsheet is in shared mode" warning in Calc.
3. Using file manager, double-click the spreadsheet again.
   => It will not open the second time; instead, the already opened file should activate. In the menu Window, there is only one instance of the file (as expected).
4. In Calc, edit any cell (say, put "1" into A1).
5. Repeat #3 above.
   => The same expected result: the file is *not* opened second time; instead, already opened file should activate. Menu Window only shows one instance of the file.
6. In Calc, save the file (Ctrl+S)
7. Repeat #3 above.
   => At this point, the second window appears with this file, accompanied by "The spreadsheet is in shared mode" warning, again. Confirming the warning, there are two entries for this document under Window menu. One may see that these two windows are not just different views of the same document (as created by Window->New Window); e.g., entering something in B1 in one window will not show in the other, as would happen if these were normal views into the same document.

Now you can edit the same document in two different windows in the same application session, and if you alter the same range, save the first window, and try to save the second, you will get a "Resolve Conflicts" dialog.

This is totally unexpected. This is reproducible using OOo 3.2.0.
Comment 1 Vladimir Sokolinskiy 2022-12-06 14:35:05 UTC
Repro.

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 6; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 2 siti 2023-02-19 12:22:40 UTC
Same problem

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded