OPTION EXPLICIT Sub Main Dim oPath oPath = createUnoService("com.sun.star.util.PathSettings") 'https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1util_1_1XPathSettings.html#a3ee6a14892709eb7acdf56afb3a18c77 'string Storage: Mail, News files and other information (for example, about FTP Server) are stored here. msgbox oPath.Storage End Sub should return a path like: file:///C:/Users/[MY_User]/AppData/Roaming/LibreOffice/4/user/store but LO 24.2.1 throws an Exception: BASIC-Laufzeitfehler. Es ist eine Ausnahme aufgetreten Type: com.sun.star.lang.WrappedTargetRuntimeException Message: non-RuntimeException occurred when accessing an interface type attribute at C:/cygwin64/home/buildslave/source/libo-core/stoc/source/corereflection/criface.cxx:263.
Thanks for the report. Not reproduced in 7.6.5 Reproduced in: Version: 24.2.2.1 (X86_64) / LibreOffice Community Build ID: bf759d854b5ab45b6ef0bfd22e51c6dc4fb8b882 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Error message in English: BASIC runtime error. An exception occurred Type: com.sun.star.lang.WrappedTargetRuntimeException Message: non-RuntimeException occurred when accessing an interface type attribute at /home/buildslave/source/libo-core/stoc/source/corereflection/criface.cxx:266 The config key was deprecated on purpose in 24.2 (checked with linux-64-24.2 bibisect repo): commit 3cee7edeb31ac64e078159c7a63ebf4f54793da7 author Samuel Mehrbrodt Mon Oct 02 12:38:24 2023 +0200 committer Samuel Mehrbrodt Mon Nov 13 15:59:35 2023 +0100 [API CHANGE] Remove deprecated Storage config item Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157486 Documented in the release notes: https://wiki.documentfoundation.org/ReleaseNotes/24.2#Configuration_Changes Samuel, what was the reason for deprecating?
Created attachment 193332 [details] sample ODS with macro Can be run with: soffice /path/to/macro_criface.ods macro://./Standard.Module1.Main
(In reply to Stéphane Guillou (stragu) from comment #1) > > The config key was deprecated on purpose in 24.2 (checked with linux-64-24.2 > bibisect repo): > > commit 3cee7edeb31ac64e078159c7a63ebf4f54793da7 > author Samuel Mehrbrodt Mon Oct 02 12:38:24 2023 +0200 > committer Samuel Mehrbrodt Mon Nov 13 15:59:35 2023 +0100 > [API CHANGE] Remove deprecated Storage config item > Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157486 > > Documented in the release notes: > https://wiki.documentfoundation.org/ReleaseNotes/24.2#Configuration_Changes > > Samuel, what was the reason for deprecating? I don't know the reason for deprecating. The property was added with the deprecation notice back in 52dfefe2e3dfc49f5c57d72e4f0cb5634edcefdc . Will revert and remove the deprecation notice.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/80fcd2290dfc9748bb7f4e322b22b773b61daa67 tdf#160153 Restore Storage config item It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/81bc6152fecfb9220ec1a36b8a7edc8634467e19 tdf#160153 Restore Storage config item It will be available in 24.2.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.