Bug 140019 - MediaDescriptor: Property "LockExport=True" should disable .uno:SendMail"
Summary: MediaDescriptor: Property "LockExport=True" should disable .uno:SendMail"
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Vasily Melenchuk (CIB)
URL:
Whiteboard: target:7.4.0 target:7.3.1
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-30 13:30 UTC by Oliver Brinzing
Modified: 2022-03-05 05:56 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 Oliver Brinzing 2021-01-30 13:30:15 UTC
opening a document with "LockExport=True" should disable ".uno:SendMail" too.

REM  *****  BASIC  *****
OPTION EXPLICIT

Sub TestLoad()

	Dim oDesktop as Object
	Dim oDocument as Object
	Dim sURL as String
	Dim mArgs(6) as new com.sun.star.beans.PropertyValue 

	mArgs(0).Name = "LockEditDoc"
	mArgs(0).Value = True

	mArgs(1).Name = "LockSave"
	mArgs(1).Value = True

	mArgs(2).Name = "LockPrint"
	mArgs(2).Value = True

	mArgs(3).Name = "LockExport"
	mArgs(3).Value = True

	mArgs(4).Name = "LockContentExtraction"
	mArgs(4).Value = True

	mArgs(5).Name = "ReadOnly"
	mArgs(5).Value = True

	mArgs(6).Name = "PickListEntry"
	mArgs(6).Value = False

	sURL = ConvertToURL("D:\test_open.odt")
	oDesktop = createUnoService( "com.sun.star.frame.Desktop" )
	oDocument = oDesktop.loadComponentFromURL(sURL, "_blank", 0, mArgs())

End Sub
Comment 1 Vladimir Sokolinskiy 2021-08-04 16:48:50 UTC
Repro.

Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 2 Samuel Mehrbrodt (allotropia) 2022-01-18 09:28:42 UTC
Agree, LockExport should as well disable the mail commands.

From the API description: "Setting this option will prevent exporting document content to any file."

https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1document_1_1MediaDescriptor.html#a78db5caeeb0553d1b528b81bb0878f15
Comment 3 Commit Notification 2022-01-20 08:14:00 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f4559274154324e132f82ba9c21676326f6db7e5

tdf#140019: Revert "Don't disable "Send doc via email" ..."

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2022-01-20 12:45:37 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/35a468ebe12d46a4092d9b70399736ae4ad2f476

tdf#140019: Revert "Don't disable "Send doc via email" ..."

It will be available in 7.3.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Alexgerrard783 2022-03-05 05:56:52 UTC
Every day, we hear the I-need-someone-to-write-my-essay-for-me phrase from students all across the country, as well https://en.samedayessay.com/ as worldwide. A student who needs a break from homework and burning deadlines is to be respected and helped.