Created attachment 159578 [details] 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.
Works for me now in V6.4.4 and 7.0.0.0.beta1. Setting to RESOLVED WORKSFORMR
Due to a message I got concerning the removal of a Whitboard entry (Xisco Faulí), I just tested with V 7.2.0.4. The reported issue was present again. RESOLVED WORKSFORME --> REOPENED
Wolfgang Jäger, let's see what QA have to say about this bug.
(In reply to Wolfgang Jäger from comment #0) > Created attachment 159578 [details] > 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) Running isPwdCorrect(), I get BASIC runtime error. Argument is not optional. pointing to line 13: args(0).Value = pPwd Arch Linux 64-bit Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: ffcdff2ff40124c58249f4a1219430610db7567f CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded Built on 27 May 2025