Bug 143297 - Saving Calc spreadsheet with many database queries injects spurious rows [FILESAVE,FORMATTING]
Summary: Saving Calc spreadsheet with many database queries injects spurious rows [FI...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-HSQLDB
  Show dependency treegraph
 
Reported: 2021-07-11 11:12 UTC by Andrew Richardson
Modified: 2023-05-19 14:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample template fiel in post-error state (34.88 KB, application/vnd.oasis.opendocument.spreadsheet-template)
2021-07-11 11:13 UTC, Andrew Richardson
Details
BASIC macros using attached Calc file [REFERENCE ONLY] (12.85 KB, text/plain)
2021-07-12 12:11 UTC, Andrew Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Richardson 2021-07-11 11:12:13 UTC
Description:
We use LO 7.0 for a reservation tracking database application using an external HSQLDB server.  One of our reports uses Calc template to generate a daily report showing reservations for each hour of business day (7AM - 5PM).  Bug is that on saving the file as either template or regular format results in a large block of spurious blank rows injected between the 4PM and 5PM time blocks.

Attached is an sample file in post-error state.  

Issue seen in LO 7.0.6.2 & 7.1.4.2 (x64)    

Steps to Reproduce:
1. Load sample file into Calc
2. Do not run database queries when prompted
3. Scroll down to the 4PM block, notice blank rows between 4PM & 5PM
4. Delete all visible blank rows
5. Save file
6. Reopen file
7. Scroll down to 4PM block, see if blank rows again present


Actual Results:
Blank rows injected

Expected Results:
No blank rows to be added to file


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.6.2 (x64)
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Andrew Richardson 2021-07-11 11:13:29 UTC
Created attachment 173491 [details]
Sample template fiel in post-error state
Comment 2 m_a_riosv 2021-07-12 10:46:50 UTC
Defined ranges beginning with Time_NXX have no source, could it be the issue?
Comment 3 Andrew Richardson 2021-07-12 12:05:05 UTC
The Time_XXX ranges are used purely for BASIC macro, residing in Base *.ODB file (not provided).  I will attached the BASIC macro itself in a separate attachment for reference.
There is no database query associated with these ranges.  It seems only the *last* Time_XXX range exhibits the bad behavior, the earlier ranges are fine. I have only seen this behavior in the LO 7.x releases; earlier LO 6.x releases did not have this problem.
Comment 4 Andrew Richardson 2021-07-12 12:11:12 UTC
Created attachment 173504 [details]
BASIC macros using attached Calc file [REFERENCE ONLY]

Relevant BASIC macros stored in Base *.ODB file (not provided).
For reference purposes only, not directly related to this bug.
Comment 5 Buovjaga 2021-07-19 11:12:47 UTC
Repro

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b1df9c67349cf4cc5be4128d797aefb87f50e38f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2021-08-03 17:07:35 UTC
Not a regression at least with the provided file. I can reproduce with 6.4, 6.3, 5.0 and 3.5 (bibisect repos on Linux)