Issue 45458

Summary: OO Writer Crashes because of insufficient permissions in .openoffice.org1.9.79
Product: General Reporter: evanchsa <evanchsa>
Component: uiAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: caolanm, flibby05, issues, lars.oppermann
Version: OOo 2.0 BetaKeywords: oooqa
Target Milestone: AOO Later   
Hardware: All   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description evanchsa 2005-03-18 23:30:14 UTC
If file permissions prevent the current user from reading/writing to files
located in:

/home/username/.openoffice.org1.9.79

The stack trace below is displayed after the Writer application crashes while
trying to open a Word Document.

I am not sure what file or directory within the private configuration is causing
the problem.

Fixing the problem is a simple chown -R username:users .openoffice1.9.79, but
the application should present an error dialog instead of a stack trace to the
terminal. 

Steps to reproduce:

0. Open terminal
1. mv .openoffice1.9.79 dot-openoffice1.9.79
2. sudo -s 
3. soffice
4. Finish initial configuration wizard
5. Load Word document
6. Close application
7. exit
8. soffice
9. Open Recent Documents=> The word document you just viewed
10. Crash:

 - evanchsa@small$ soffice 
terminate called after throwing an instance of
'com::sun::star::configuration::backend::InsufficientAccessRightsException'
terminate called recursively


Fatal exception: Signal 6
Stack:
/opt/openoffice.org1.9.79/program/libuno_sal.so.3[0x40c794e3]
/opt/openoffice.org1.9.79/program/libuno_sal.so.3[0x40c7960d]
/opt/openoffice.org1.9.79/program/libuno_sal.so.3[0x40c796ff]
/lib/libpthread.so.0[0x41161be5]
/lib/libc.so.6[0x413a5078]
/lib/libpthread.so.0(raise+0x2b)[0x4115eccb]
/lib/libc.so.6(gsignal+0x44)[0x413a4df4]
/lib/libc.so.6(abort+0x178)[0x413a65a8]
/opt/openoffice.org1.9.79/program/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x42)[0x41324a12]
/opt/openoffice.org1.9.79/program/libstdc++.so.6[0x41322505]
/opt/openoffice.org1.9.79/program/libstdc++.so.6[0x41322542]
/opt/openoffice.org1.9.79/program/libstdc++.so.6[0x413226d2]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x443604db]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4436e3d1]
/opt/openoffice.org1.9.79/program/libsvx680li.so[0x46335e4c]
/opt/openoffice.org1.9.79/program/libsvx680li.so[0x4633cf38]
/opt/openoffice.org1.9.79/program/libsvx680li.so[0x464a43ce]
/opt/openoffice.org1.9.79/program/libsvx680li.so[0x464a4fa6]
/opt/openoffice.org1.9.79/program/soffice.bin(_ZN7desktop19impl_callRecoveryUIEhhh+0x522)[0x806dca2]
/opt/openoffice.org1.9.79/program/soffice.bin(_ZN7desktop7Desktop9SaveTasksEl+0xe)[0x806dece]
/opt/openoffice.org1.9.79/program/soffice.bin(_ZN7desktop7Desktop9ExceptionEt+0x9a)[0x806df6e]
/opt/openoffice.org1.9.79/program/libvcl680li.so[0x4009aab2]
/opt/openoffice.org1.9.79/program/libvos3gcc3.so(_ZN3vos28_cpp_OSignalHandler_FunctionEPvP13oslSignalInfo+0xf)[0x40bd008b]
/opt/openoffice.org1.9.79/program/libvos3gcc3.so(_Z24_OSignalHandler_FunctionPvP13oslSignalInfo+0x1a)[0x40bd00a8]
/opt/openoffice.org1.9.79/program/libuno_sal.so.3[0x40c79555]
/opt/openoffice.org1.9.79/program/libuno_sal.so.3[0x40c796e5]
/lib/libpthread.so.0[0x41161be5]
/lib/libc.so.6[0x413a5078]
/lib/libpthread.so.0(raise+0x2b)[0x4115eccb]
/lib/libc.so.6(gsignal+0x44)[0x413a4df4]
/lib/libc.so.6(abort+0x178)[0x413a65a8]
/opt/openoffice.org1.9.79/program/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x101)[0x41324ad1]
/opt/openoffice.org1.9.79/program/libstdc++.so.6[0x41322505]
/opt/openoffice.org1.9.79/program/libstdc++.so.6[0x41322542]
/opt/openoffice.org1.9.79/program/libstdc++.so.6(__cxa_rethrow+0x59)[0x41322739]
/opt/openoffice.org1.9.79/program/configmgr2.uno.so[0x42fddf85]
/opt/openoffice.org1.9.79/program/configmgr2.uno.so[0x42fdc92a]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4436254f]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4436ceb0]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4436d2db]
/opt/openoffice.org1.9.79/program/libsfx680li.so[0x43a5d27e]
/opt/openoffice.org1.9.79/program/libsfx680li.so[0x43a5d0a8]
/opt/openoffice.org1.9.79/program/libsvl680li.so(_ZN14SfxBroadcaster9BroadcastERK7SfxHint+0x59)[0x4039e6dd]
/opt/openoffice.org1.9.79/program/libsfx680li.so(_ZN14SfxApplication11NotifyEventERK12SfxEventHinti+0x55)[0x438e9c1d]
/opt/openoffice.org1.9.79/program/libsfx680li.so[0x439809d6]
/opt/openoffice.org1.9.79/program/libsfx680li.so[0x43a2165e]
/opt/openoffice.org1.9.79/program/libvcl680li.so[0x401fe776]
/opt/openoffice.org1.9.79/program/libvcl680li.so[0x401fe7d5]
/opt/openoffice.org1.9.79/program/libvcl680li.so(_ZN6Window4ShowEht+0x34b)[0x40209171]
/opt/openoffice.org1.9.79/program/libvcl680li.so(_ZN6Window4ShowEht+0x3f2)[0x40209218]
/opt/openoffice.org1.9.79/program/libsfx680li.so(_ZN12SfxViewFrame4ShowEv+0xee)[0x43a19f94]
/opt/openoffice.org1.9.79/program/libsfx680li.so(_ZN11SfxTopFrame14InsertDocumentEP14SfxObjectShell+0x7d7)[0x43a244a7]
/opt/openoffice.org1.9.79/program/libsfx680li.so[0x439ff7e0]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4430a41c]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x4430ae2b]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x441eedb3]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x441ee763]
/opt/openoffice.org1.9.79/program/libfwk680li.so[0x44390a90]
/opt/openoffice.org1.9.79/program/libvcl680li.so[0x402195d1]
/opt/openoffice.org1.9.79/program/libvclplug_gen680li.so(_ZN10SalDisplay21DispatchInternalEventEv+0xaa)[0x420b93e8]
/opt/openoffice.org1.9.79/program/libvclplug_gtk680li.so[0x41b8fb1a]
/usr/lib/libglib-2.0.so.0[0x42015083]
/usr/bin/soffice: line 235: 22306 Aborted                 "$sd_prog/$sd_binary" "$@"
Comment 1 flibby05 2005-03-20 14:19:07 UTC
set to NEW

@mru: is this a valid issue?
Comment 2 michael.ruess 2005-04-15 14:07:49 UTC
Framework issue.
Comment 3 Olaf Felka 2005-04-15 15:03:49 UTC
of @ lo & cj: Something like a message box with a hint for missing permissions
for the OOo configfiles would be a great. Can we have it for OOo 2.02?
Workaround: Don't do so. Creating config file without user permissions doesn't
really make sense.
Comment 4 christian.jansen 2005-05-19 14:25:56 UTC
CJ: I would not like to see a warning here, it would be better if OOo would be
so smart to create only files with the correct user permissions.
Comment 5 lo 2005-07-11 09:57:35 UTC
setting issue type to defect
Comment 6 lo 2007-03-06 17:07:30 UTC
dispatch to framework
Comment 7 carsten.driesner 2007-03-08 13:03:33 UTC
cd: Accepted, although without writable configuration no user changes can be
stored. It's more a read-only Office as we need temporary files for several
functions.