Bug 145108 - Read-only documents can still be changed by drag-and-droping text
Summary: Read-only documents can still be changed by drag-and-droping text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Read-Only
  Show dependency treegraph
 
Reported: 2021-10-13 10:02 UTC by Martin
Modified: 2023-05-21 06: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 Martin 2021-10-13 10:02:52 UTC
Description:
I opened a read-only document (it was a ppt, but I also tried on a fresh lorem ipsum odp and the bug still happened). (By read-only, I mean that the system permissions are -r--r--r--.)

A blue notice appears at the top stating that the document is in read-only mode, which is completely normal. Also, any editing of the document is disabled: ctrl+x, adding test, etc. This is also normal.

I mindlessly selected some text and drag-and-drop it. And the text was indeed drag-and-droped, while still being in read-only mode. This is unexpected. Ctrl+z was still disabled: it was very difficult to actually get the text as it were without restarting LibreOffice Impress (the actual file was not changed).

Steps to Reproduce:
1. Open a read-only odp or ppt document (tested on an actual document, and on a fresh lorem ipsum)
2. Select some text.
3. Drag-and-drop the text somewhere else.

Actual Results:
The text is being moved by the drag-and-drop despite the notice blue “The document is in read-only mode” at the top. Ctrl+z being disabled (as well as any other way of editing), there is no easy way to get the text back as it were.

Note that this doesn’t change the actual file (as Ctrl+s is disabled in read-only mode). It is just changed within LibreOffice.

Expected Results:
The text should not move in read-only mode.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: eo (eo.UTF-8)
Module: PresentationDocument

OS: Linux 5.4
OS is 64bit: yes

Happened on 6.0.7.3 (I didn’t test on other versions)
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU-threads: 12
Fasada bildigo: apriora;
VCL: gtk3; 
Calc: group

The bug happens both in normal mode and in safe mode.
Comment 1 yellowplane 2021-11-10 16:05:57 UTC
I can reproduce in

Version: 7.3.0.0.alpha1+ (x86) / LibreOffice Community
Build ID: ccf3d9140a24d767003c08cd0247e6ee6fd12fe0
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_US); UI: en-US
Calc: threaded

In addition to dragging and dropping, I realized that you can move the text using the space bar. Other text manipulations remained unusable as expected, and I confirmed that ctrl+s is disabled and the file itself is not changed once you close out of the document and open it again.