Bug 116032 - can't open files that are owned by a different user regardless of filepermission
Summary: can't open files that are owned by a different user regardless of filepermission
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-26 15:02 UTC by documentfoundation
Modified: 2018-03-09 10:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
dmesg log (3.72 KB, text/plain)
2018-02-26 15:34 UTC, documentfoundation
Details

Note You need to log in before you can comment on or make changes to this bug.
Description documentfoundation 2018-02-26 15:02:32 UTC
Description:
For some reason, LibreOffice seems to be unable to open files that are owned by a different user, regardless of the file permissions (tested with calc, writer and impress).

I came across https://ask.libreoffice.org/en/question/137872/libreoffice-wont-open-files-i-dont-own/ who seems to have the same problem but no solution...

Steps to Reproduce:
 1. create a new LibreOffice file 
 2. write some test text and save it somewhere you are sure of having all the required permissions (e.g. your home folder)
 3. open it again and confirm it still works, close again
 4. change file permissions to 777 and repeat 3, still ok
 5. change owner to someone else...
 6. try opening it again and BOOM nothing, LibreOffice just vanishes without any hint of what went wrong
 7. open LibreOffice (e.g. writer) directly and try to open the file, you get an untitled empty document
 8. try to drag and drop the file into the open LibreOffice writer and now, for the first time, you get an actual error message hinting at what is wrong (instead of all this silent crashing): "The object cannot be accessed  due to insufficient user rights"

Actual Results:  
LibreOffice is silently crashing/opening empty untitled documents instead of the file I try to open.

Expected Results:
LibreOffice should open the file and let me edit and save it if I have read, write and execution rights on it regardless of who owns it.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 5.4.5.1
Build-ID: 1:5.4.5-0ubuntu0.17.10.1
CPU-Threads: 4; BS: unknown; UI-Render: Standard; VCL: gtk3; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.167 Chrome/64.0.3282.167 Safari/537.36
Comment 1 documentfoundation 2018-02-26 15:34:20 UTC
Created attachment 140154 [details]
dmesg log

I may have forgotten to check the system log...

This seems to be related to AppArmor and should probably be reposted at https://bugs.launchpad.net/ubuntu/+source/libreoffice
Comment 2 Buovjaga 2018-03-08 17:49:36 UTC
No problem here.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: b8fe96f1da2c42c04a8094ca8c57d49763b7bded
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 8th 2018
Comment 3 documentfoundation 2018-03-09 10:46:25 UTC
It looks like this was a Debian only problem which was fixed by https://bugs.launchpad.net/ubuntu/+source/libreoffice/1:5.4.5-0ubuntu0.17.10.5.