Bug 127355 - Write-protected section in header can be easily removed
Summary: Write-protected section in header can be easily removed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Section
  Show dependency treegraph
 
Reported: 2019-09-05 08:11 UTC by Orwel
Modified: 2023-01-29 20:13 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 Orwel 2019-09-05 08:11:18 UTC
Description:
If you insert some text in the header of Writer document and write-protect it with password, it can be easily removed by deleting the header, what it think is not a correct behaviour.

Steps to Reproduce:
1. Write some text in a header
2. Mark the text as a write-protected Section (Menu/Insert/Section)
3. Delete the header.

Reproduce the same steps, but not in header. You can not remove the Section.

Actual Results:
The Section will be deleted.

Expected Results:
Writer should ask for the password before deleting the header.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
I do not know which version of LO was affected as the earliest one.

Version: 6.2.6.2 (x64)
Build ID: 684e730861356e74889dfe6dbddd3562aae2e6ad
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: sk-SK (sk_SK); UI-Language: en-GB
Calc: threaded
Comment 1 Roman Kuznetsov 2019-09-05 19:20:09 UTC
Confirm deleting of section when it's in the header of document.

Версия: 6.4.0.0.alpha0+
ID сборки: 2bed8af91fc2654b9ed2432f969d32d5741a529b
Потоков ЦП: 4; ОС:Linux 5.2; Отрисовка ИП: по умолчанию; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-08-21_09:30:10
Локаль: ru-RU (ru_RU.UTF-8); Язык интерфейса: ru-RU
Calc: threaded
Comment 2 Xisco Faulí 2019-09-18 10:42:06 UTC
also reproduced in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

and

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 Orwel 2021-01-28 09:55:17 UTC
UPDATE:
Bug still present in LO 7.0.4.
It does not matter if the protected section in header is password protected or nor, you can still delete the header by simple click...

The header is NOT PROTECTED from changes...
Comment 4 QA Administrators 2023-01-29 03:24:00 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2023-01-29 20:13:28 UTC
Still repro in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0bb90afaeb193181d7b98b79e962549d8a1dd85a
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded