[Libreoffice-bugs] [Bug 132118] New: LoadComponentFromURL called with a wrong password prompts for a password.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 15 11:47:33 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=132118
Bug ID: 132118
Summary: LoadComponentFromURL called with a wrong password
prompts for a password.
Product: LibreOffice
Version: 6.4.2.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jag at psilosoph.de
Created attachment 159578
--> https://bugs.documentfoundation.org/attachment.cgi?id=159578&action=edit
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: https://ask.libreoffice.org/en/question/145716/). 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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200415/3ea5e837/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list