Bug 160962 - Protecting OLE object content does not disable context menu Edit item
Summary: Protecting OLE object content does not disable context menu Edit item
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OLE-Object-Edit-Transition
  Show dependency treegraph
 
Reported: 2024-05-06 13:49 UTC by Eyal Rozenberg
Modified: 2024-07-25 11:43 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 Eyal Rozenberg 2024-05-06 13:49:20 UTC
(Noticed by Heiko Tieze)

1. Create a document (e.g. in Writer)
2. Insert an OLE object, not as icon
3. In the object's context menu, choose Properties > Options
4. Under Protect, click Contents
5. Right-click the object to observe its context menu

Expected result: "Edit" is disabled on the menu

Actual result: "Edit" is enabled on the menu - and works; so does double-clicking. But the changes don't 'take' after leaving the edit mode.
Comment 1 Stéphane Guillou (stragu) 2024-05-21 23:20:39 UTC
(In reply to Eyal Rozenberg from comment #0)
> Actual result: "Edit" is enabled on the menu - and works; so does
> double-clicking.
Reproduced.
> But the changes don't 'take' after leaving the edit mode.
I tested with en embedded spreadsheet and the edit is persistent.
What type of OLE object and in which component exactly?

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ae798781ef4df7a1fdef13af0bc459bf4f6e7b4c
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded
Comment 2 Eyal Rozenberg 2024-05-24 16:13:56 UTC
(In reply to Stéphane Guillou (stragu) from comment #1)
> What type of OLE object and in which component exactly?

Say, PDF file in Writer.
Comment 3 Buovjaga 2024-07-25 08:02:42 UTC
(In reply to Eyal Rozenberg from comment #2)
> (In reply to Stéphane Guillou (stragu) from comment #1)
> > What type of OLE object and in which component exactly?
> 
> Say, PDF file in Writer.

Changes take for me with PDF files as OLE objects.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c60dd66d89dab2174aa71c26c653f68908c7ba78
CPU threads: 8; OS: Linux 6.9; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 25 July 2024
Comment 4 Eyal Rozenberg 2024-07-25 11:43:17 UTC
(In reply to Buovjaga from comment #3)
> Changes take for me with PDF files as OLE objects.

Also can't reproduce that part right now. Anyway, Edit should be disabled when protection is on.