Bug 136482 - The image in the document is write-protected: can be deleted from Navigator, but not directly
Summary: The image in the document is write-protected: can be deleted from Navigator, ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2020-09-04 21:28 UTC by Dan Essin
Modified: 2024-02-06 11:42 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
message box (19.39 KB, image/jpeg)
2020-09-04 21:33 UTC, Dan Essin
Details
sample document with wr-te-protected image (16.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-09-04 21:38 UTC, Dan Essin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Essin 2020-09-04 21:28:49 UTC
Description:
I copied some stuff from a web page and pasted it into a ne document. Then I tried to delete part of the text. It won't allow that

Steps to Reproduce:
1. create new writer document
2. Copy a portion of a web page
3. Select about 20 lines at the end and press delete.

Actual Results:
message box
read-only cont
Write-protected content cannot be changed
No modifications will be accepted

Expected Results:
text should have deleted


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Dan Essin 2020-09-04 21:33:43 UTC
Created attachment 165164 [details]
message box
Comment 2 Dan Essin 2020-09-04 21:38:59 UTC
Created attachment 165165 [details]
sample document with wr-te-protected image
Comment 3 m_a_riosv 2020-09-05 00:13:02 UTC
For me only the preview of the movie can not be deleted selecting it or a piece of text with in inside, using the cursor.
But it's possible using the navigator, right-clicking on the image name and selecting delete.

Version: 7.1.0.0.alpha0+ (x64)
Build ID: baa84b5b4d287da0f00fc3fbf11f464f267c9202
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: threaded
Comment 4 m_a_riosv 2020-09-05 00:14:30 UTC
Please edit the bug's title, to reflects better what the bug is.
Comment 5 milly texas 2020-09-05 14:24:31 UTC Comment hidden (off-topic)
Comment 6 QA Administrators 2022-09-06 03:53:29 UTC Comment hidden (obsolete)
Comment 7 Kira Tubo 2023-10-13 07:29:33 UTC
Reproduced as described in Comment 3: 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1ec2e39cf4d5fe0a592bc783fd8bcdc4345c8cbd
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 6.3.0.0.alpha1 (x64)
Build ID: 547edd20e527fb02900f6174973770d26306e2e7
CPU threads: 6; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL

Reproduced as described in original report:

Version: 5.4.0.0.alpha1 (x64)
Build ID: 0b9f9bef65bb21ebb6a64aafad448f7f62dc824a
CPU threads: 6; OS: Windows 6.19; UI render: default; 
Locale: en-US (en_US); Calc: CL

Not reproduced in 3.3 or 4.0 beta => Regression

Version 4.0.0.0.beta1 
(Build ID: 87906242e87d3ddb2ba9827818f2d1416d80cc7)
Comment 8 raal 2024-02-05 23:52:37 UTC
This seems to have begun at the below commit in bibisect repository/OS bibisect-linux-64-5.2.
Adding Cc: to Oliver Specht ; Could you possibly take a look at this one?
Thanks
 d2b62d7f6eda96c1450cbdde99e6d3fe494ba047 is the first bad commit
commit d2b62d7f6eda96c1450cbdde99e6d3fe494ba047
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Sun Dec 17 00:30:05 2017 +0100

    source 523a3d18e98cd51aa8bf76cf76314a22ddc2b2cf

24365: tdf#99434: import/export documentProtection-forms from .docx incl. test | https://gerrit.libreoffice.org/c/core/+/24365
Comment 9 Oliver Specht (CIB) 2024-02-06 11:42:33 UTC
It's not a bug to put this image into a protected section - it's also protected in Word.
IMO it's wrong to allow to remove it using the navigator.