Bug 161129 - Rather useless message "an error occurred during file opening"
Summary: Rather useless message "an error occurred during file opening"
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
7.6.6.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/when-tr...
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Error-Messages Not-Localizable
  Show dependency treegraph
 
Reported: 2024-05-16 07:27 UTC by Ulrich Windl
Modified: 2024-06-07 04:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with error message (error is English, rest is German) (47.06 KB, image/png)
2024-05-16 07:28 UTC, Ulrich Windl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2024-05-16 07:27:17 UTC
Description:
Having some trouble with dictionaries in the portable installation of LibreOffice 7.6.6, I tried to remove/add/reinstall dictionaries.
Unfortunately there's a rather useless error message "an error occurred during file opening".
The message is useless, because it does not state *which* error occurred, and *which file* the error message refers to.

Steps to Reproduce:
1. Try to re-install an extension that is already there, and select "instal lfor all users"


Actual Results:
An error occurs that is not really helpful.

Expected Results:
Some helpful error message shopuld be output.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.6.3 (x86) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 1 Ulrich Windl 2024-05-16 07:28:00 UTC
Created attachment 194142 [details]
Screenshot with error message (error is English, rest is German)
Comment 2 Robert Großkopf 2024-05-31 09:58:57 UTC
There is only one step described. 

1. Uninstall the extension, which is installed the wrong way (not for all users…)
2. Install the extension with the right properties you want. If you try to install for all users it will only work with admin rights.

The error occurs when trying to insert an extension file, which is shown at the bottom of the dialog. So which other information do you expect?
Comment 3 Ulrich Windl 2024-05-31 11:56:03 UTC
(comment #0)
> ... in the portable installation of
> LibreOffice 7.6.6, ...

(In reply to Robert Großkopf from comment #2)
> 2. Install the extension with the right properties you want. If you try to
> install for all users it will only work with admin rights.

I thought that for portable installations I only need write access to the directory where the installation is.

> 
> The error occurs when trying to insert an extension file, which is shown at
> the bottom of the dialog. So which other information do you expect?

I'd expect something helpful, as neither clean de-installation, nor re-installation seemed to work. My guess is that *something* is messed up, but from the error message shown, it's completely unclear what it is.
Comment 4 QA Administrators 2024-06-01 03:15:30 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2024-06-07 04:59:12 UTC
The message is in ucb/source/ucp/file/filglob.cxx:368 and is not a translatable string:

            cancelCommandExecution(
                ioErrorCode,
                generateErrorArguments(aUncPath),
                xEnv,
                u"an error occurred during file opening"_ustr,
                xComProc);

(very similar to "an error occurred during opening a file", line 498)

Not reproduced on Linux:

Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Confirmed that others have seen that message: https://ask.libreoffice.org/t/when-trying-to-add-an-extension-i-got-the-following-error-message/28768

Do you still get the same error with the 24.2 version?
Do you not experience it with the non-portable version?