Bug 142573 - createLibraryLink() does not honor read-only parameter
Summary: createLibraryLink() does not honor read-only parameter
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 22:18 UTC by Vieri
Modified: 2022-11-26 03:42 UTC (History)
1 user (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 Vieri 2021-05-30 22:18:33 UTC
Description:
Hi,

I use createLibraryLink(mylib,mypath,True) in a macro *within* a document as in:

https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1XLibraryContainer.html#acbc9ec8b013ba7915009f07eb0922dd8

Each time I save the document the macro library in "mypath" is "updated" according to filesystem timestamp.

I do *not* want that to happen. As I specified "True" as the third parameter to the funcion, I'm expecting the document to be saved but NOT the macro library in "mypath" which should be read-only.
If I set read-only rights to "mypath", LibreOffice complains with an I/O error.

This sounds like a bug to me.

Seen in LO 7.0.6 and 7.1.1.

Regards,

Vieri


Steps to Reproduce:
1. createLibraryLink(mylib,mypath,True)
2. set mypath read-only 
3. save document

Actual Results:
you should see an I/O error reported by LO

Expected Results:
No error. Macro lib loaded read-only should be left untouched.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.1.2 (x64) / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded
Comment 1 Vieri 2021-05-31 21:23:40 UTC
LibreOffice 7.1.3.2 also has the same behavior.
Comment 2 Buovjaga 2022-04-28 12:30:56 UTC
Can you attach files for testing? Or least give the actual code for how you call createLibraryLink, so people who have never used it before don't have to figure out how to give the arguments.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the documents.
Comment 3 QA Administrators 2022-10-26 03:36:14 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2022-11-26 03:42:33 UTC
Dear Vieri,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp