<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - createLibraryLink() does not honor read-only parameter"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142573">142573</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>createLibraryLink() does not honor read-only parameter
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.6.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rentorbuy@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Hi,

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

<a href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1XLibraryContainer.html#acbc9ec8b013ba7915009f07eb0922dd8">https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1XLibraryContainer.html#acbc9ec8b013ba7915009f07eb0922dd8</a>

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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>