Bug 146034 - Output to HTML: confusing filenames after confirmation to overwrite existing one
Summary: Output to HTML: confusing filenames after confirmation to overwrite existing one
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2021-12-03 18:31 UTC by achim
Modified: 2023-12-23 11:59 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 achim 2021-12-03 18:31:59 UTC
The function "File -> Send -> Create HTML Document" creates a master file with
the first page (if any) and the content index. All other chapters get their
own file and are linked to in the master file.
When the function is called, it asks for a filename. If that file exists, it
ask for confirmation to overwrite it.
When it overwrites the existig top-level one, it does not overwrite the
corresponding other files but generates new ones. This results in a bunch of
outdated files, which are hard to identfy.

For example, if the documents has 3 chapters it may generate following files:
  doc.html  doc1.html  doc2.html  doc3.html

If we generate it again and confirm to overwrite doc.html, it generates:
  doc.html  doc4.html  doc5.html  doc6.html

I've not tested what happens if the numbering of the files is not continuous,
  doc1.html doc4.html
If the gaps in the numbering are used, it gets more worse ...

I'd expect that all files are overwritten.
Comment 1 Dieter 2021-12-21 07:23:36 UTC
I confirm it with

Version: 7.2.4.1 (x64) / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 2 QA Administrators 2023-12-22 03:13:20 UTC Comment hidden (obsolete)
Comment 3 achim 2023-12-23 11:59:16 UTC
Quick test with 7.6.4.1
bug still exists
Cheers achim

----
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.utf8); UI: en-US
Calc: threaded