Bug 144114 - Exception trying to find if xxx is encrypted: com.sun.star.ucb.InteractiveAugmentedIO
Summary: Exception trying to find if xxx is encrypted: com.sun.star.ucb.InteractiveAug...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 159153 (view as bug list)
Depends on:
Blocks: Start-Center console-noise
  Show dependency treegraph
 
Reported: 2021-08-27 01:08 UTC by Jim Avera
Modified: 2024-09-24 05:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
typescript (4.98 KB, text/plain)
2021-08-27 01:08 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2021-08-27 01:08:48 UTC
Created attachment 174566 [details]
typescript

When starting up normally with no arguments, i.e. using your existing profile, many messages appear on the terminal about previously-edited files (which may or may not still exist), like these:

warn:sfx:42797:42797:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///home/jima/doc/rffm/ar-rec/internet/bom.xlsx> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22

I will attach a typescript file showing what I see.

All the messages seem to be related to spreadsheets; they appear if "soffice" is run without arguments, or with --calc, but NOT if invoked with 
e.g. --writer.

STEPS TO REPRODUCE:

1. Create or edit some spreadsheets (if necessary) to establish a profile with history of such files.

2. /path/to/libreofficedev7.3/program/soffice

RESULTS:

Many "caught exception" messages, as shown in the attached typescript.

EXPECTED RESULTS:

Nothing written to terminal unless the user should do something.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 282b2d8bfd6fb16f58fb177910427b031dc80066
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-26_09:43:29
Calc: threaded
Comment 1 Michael Warner 2021-08-27 14:49:51 UTC
I get this, too; but I get it for Writer documents.
Comment 2 Alex Thurgood 2021-08-30 08:57:35 UTC
Not just Calc documents. Seems to be a scan of all of the recently opened documents that are displayed in the StartCenter.

Reproduced in LODev 7.3.0alpha when running in a lldb session :

(lldb) target create "/Applications/LibreOfficeDev.app"
Current executable set to '/Applications/LibreOfficeDev.app' (x86_64).
(lldb) run
Process 3526 launched: '/Applications/LibreOfficeDev.app/Contents/MacOS/soffice' (x86_64)
2021-08-30 10:56:17.471091+0200 soffice[3526:94460] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=3526
2021-08-30 10:56:17.471146+0200 soffice[3526:94460] SecTaskCopyDebugDescription: soffice[3526]/0#-1 LF=0
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/Example2Fields.odb> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/relationship.odb> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/testiconset.ods> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/FPA/Report.ods> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/ipdatabase_ODBC_local.odb> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/test(2).odb> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Downloads/form%20creation%20test.odb> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
warn:sfx:3526:94460:sfx2/source/control/recentdocsview.cxx:90: caught exception trying to find out if doc <file:///Users/alex/Library/Application%20Support/LibreOfficeDev/4/user/temp/Tasks.odt> is encrypted: com.sun.star.ucb.InteractiveAugmentedIOException message: an error occurred during file opening Code: 22
Comment 3 Stéphane Guillou (stragu) 2024-01-28 05:11:03 UTC
*** Bug 159153 has been marked as a duplicate of this bug. ***
Comment 4 Chris Sherlock 2024-09-24 05:54:57 UTC
Error code 22 is defined in file.hxx and is either:

E_INVAL = osl_File_E_INVAL,          ///< invalid argument to library function
E_NFILE = osl_File_E_NFILE,          ///< too many distinct file openings

https://opengrok.libreoffice.org/xref/core/include/osl/file.hxx?r=e1a351ca#56

(I think it's likely the latter if enum starts at 1)