Bug 115987 - Failed when I open the file not under the /home directory and its sub-directories.
Summary: Failed when I open the file not under the /home directory and its sub-directo...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 115932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-24 10:06 UTC by David Chang
Modified: 2018-03-20 18:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Chang 2018-02-24 10:06:36 UTC
Description:
I'm using LibreOffice 5.4.5.1 on Ubuntu 17.10. The program works fine when I open the file under /home/user/Document .
I created directory named "Foo" in / and changed the owner to current user. The I copied a.doc to /Foo and tried to open it, but failed either by double-click in nautilus or by command "libreoffice a.doc". The program shut down immediately. 

Steps to Reproduce:
1. sudo mkdir /Foo
2. sudo chown -R user /Foo
3. cp ~/Document/a.doc /Foo
4. cd /Foo
5. libreoffice a.doc

Actual Results:  
The program shut down immediately. 

Expected Results:
The program can start normally. 


Reproducible: Always


User Profile Reset: Yes



Additional Info:
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 JirkaZ 2018-02-24 23:22:32 UTC
I have exactly the same bug in LibreOffice 5.4.5.1 on Kubuntu 14.04 LTS (ID 1:5.4.5-0ubuntu0.14.04.1~lo1).
Comment 2 JirkaZ 2018-02-24 23:26:29 UTC
Here https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522149.html is the same bug described...
Comment 3 JirkaZ 2018-02-24 23:40:44 UTC
I add another info:

in my case the problem with no opening files not under the /home directory and its sub-directories is not only on linux directory on the ext4 partition (as is described by David Chang), but also on any windows directory on the ntfs partition (full accessible via ntfs3g).

The bug has not appear either in previous LO version (5.4.4), or in any older versions...
Comment 4 JirkaZ 2018-02-24 23:57:00 UTC
I have successfully tested the workaround described on https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522163.html :

sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

But it is only workaround, not the solution...
Comment 5 JirkaZ 2018-02-25 00:28:24 UTC
The permanent workaround (but still no solution) is described on https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522163.html :

sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

The problem seems to will be repaired - see https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522380.html and previous/next messages...
Comment 6 JirkaZ 2018-02-25 00:35:42 UTC
(In reply to JirkaZ from comment #5)
> The permanent workaround (but still no solution) is described on
> https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522163.
> html :
> 
> sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

SORRY - MY MISTAKE!

the real permanent workaround (but still no solution) is described on https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522185.html and console command is following:

sudo ln -s /etc/apparmor.d/usr.lib.libreoffice.program.* /etc/apparmor.d/disable/
Comment 7 David Chang 2018-02-25 01:34:52 UTC
(In reply to JirkaZ from comment #6)
> (In reply to JirkaZ from comment #5)
> > The permanent workaround (but still no solution) is described on
> > https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522163.
> > html :
> > 
> > sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*
> 
> SORRY - MY MISTAKE!
> 
> the real permanent workaround (but still no solution) is described on
> https://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg522185.
> html and console command is following:
> 
> sudo ln -s /etc/apparmor.d/usr.lib.libreoffice.program.*
> /etc/apparmor.d/disable/

 Thanks very much! This workaround works.
Comment 8 Young 2018-03-05 07:46:10 UTC
*** Bug 115932 has been marked as a duplicate of this bug. ***
Comment 9 Buovjaga 2018-03-10 17:44:20 UTC
Debian problem fixed by https://bugs.launchpad.net/ubuntu/+source/libreoffice/1:5.4.5-0ubuntu0.17.10.5
Comment 10 JirkaZ 2018-03-20 18:02:40 UTC
"Live" version of this bug:  https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751005