Bug 104049 - Renaming paragraph style in Writer destroys the document
Summary: Renaming paragraph style in Writer destroys the document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium major
Assignee: Not Assigned
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
Reported: 2016-11-20 07:00 UTC by Elmar
Modified: 2023-05-14 07:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

File example (6.11 MB, application/vnd.oasis.opendocument.text)
2023-05-14 07:17 UTC, Roman Kuznetsov

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar 2016-11-20 07:00:41 UTC
If I change the name of a paragraph style in my document and then save it, a totally corrupted document is written to disk.

You can download the document to reproduce the problem here:

The same problem happens in OpenOffice (sent them a report too), in CentOS 6 and CentOS 7 64bit.

Steps to Reproduce:
1.Load the document corruption.odt
2.Press F11 to bring up Styles+Formatting
3.Right-click on Style ITX, click Modify
4.Select the 'Organizer' tab, change name from ITX to ITX2, press <Tab> so that next style is also ITX2
5.Click Apply and OK
6.Click File > Save
7.Close and reopen the document 

Actual Results:  
Document is totally corrupted. Since the corruption is only visible after reopening, an entire day of work was affected even though auto-save was active.

Expected Results:

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Comment 1 m_a_riosv 2016-11-20 17:08:08 UTC
Version: (x64)
Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
Locale: es-ES (es_ES); Calc: group
Comment 2 QA Administrators 2017-11-21 15:45:25 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-12-03 13:54:39 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2019-12-06 00:47:02 UTC
Version: (x64)
Build ID: 60e8941fd581bb06cbf6be62edb8c387e7c07812
CPU threads: 4; OS: Windows 10.0 Build 19035; UI render: default; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
Comment 5 QA Administrators 2021-12-06 04:04:54 UTC Comment hidden (obsolete)
Comment 6 Roman Kuznetsov 2023-05-13 12:12:28 UTC Comment hidden (obsolete)
Comment 7 Elmar 2023-05-14 01:00:52 UTC Comment hidden (obsolete)
Comment 8 Roman Kuznetsov 2023-05-14 07:17:04 UTC
Confirm with file example

Version: (X86_64) / LibreOffice Community
Build ID: e08c910f9ee520ce00fe99d6dab9988138996ee3
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded
Comment 9 Roman Kuznetsov 2023-05-14 07:17:23 UTC
Created attachment 187262 [details]
File example