<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 - LoadComponentFromURL called with a wrong password prompts for a password."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=132118">132118</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LoadComponentFromURL called with a wrong password prompts for a password.
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.2.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>jag@psilosoph.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159578" name="attach_159578" title="A slightly reworked version of the mentioned helper from 2 years ago.">attachment 159578</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159578&action=edit" title="A slightly reworked version of the mentioned helper from 2 years ago.">[details]</a></span>
A slightly reworked version of the mentioned helper from 2 years ago.
Code example in Basic:
srvSupplier = ThisComponent.CurrentController.Frame
Dim args(0) As New com.sun.star.beans.PropertyValue
args(0).Name = "Password"
args(0).Value = "A wrong Password" REM Actually taken from a SheetCellRange.
targetDoc = srvSupplier.loadComponentFromURL(pUrl, "_blank", 0, args)
Condition: The password supplied via args(0).Value is wrong.
Expected: targetDoc is made the Null object.
Experienced : A prompt to enter a password is casted.
Why bad? (E.g.)
A few years ago I wrote a provisional helper for recolleting a forgotten
password (See: <a href="https://ask.libreoffice.org/en/question/145716/">https://ask.libreoffice.org/en/question/145716/</a>). It can no
longer work unattended due to the new behaviour.
The behaviour is independent of whether I use a controller's frame or the
StarDesktop to call 'loadComponentFromURL'.
Remedy?
Workaround: A second PropertyValue to pass with 'args' and set to:
args(1).Name = "Hidden"
args(1).Value = True
Disadvantage: Old code formerly doing its duty must be changed.</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>