Bug 85618

Summary: inconsistent "save as" dialog behaviour - permissions and location dependence
Product: LibreOffice Reporter: gustavo
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED --- QA Contact:
Severity: normal    
Priority: medium CC: todventtu
Version: 4.2.7.2 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: FAIL scenario
OK scenario

Description gustavo 2014-10-29 20:21:05 UTC
If testfile.odt

1- has permissions 400
2- is located on /tmp

the "save as" dialog will not show the original filename as the candidate name for saving - the user will see a blank space instead.

Since the files opened from thunderbird attachments by double clicking fullfil conditions 1 and 2, we have a usability problem.

Changing the permissions to 440 or moving the original file to another directory makes this behaviour go away.

Summary

chmod 400 /tmp/testfile.odt
/usr/lib/libreoffice/program/oosplash --writer /tmp/testfile.odt - FAIL
chmod 440 /tmp/testfile.odt
/usr/lib/libreoffice/program/oosplash --writer /tmp/testfile.odt - OK
chmod 400 /tmp/testfile.odt
/usr/lib/libreoffice/program/oosplash --writer /tmp/testfile.odt - FAIL
mv /tmp/testfile.odt ~
/usr/lib/libreoffice/program/oosplash --writer ~/testfile.odt - OK
Comment 1 gustavo 2014-10-29 21:09:03 UTC
Created attachment 108648 [details]
FAIL scenario
Comment 2 gustavo 2014-10-29 21:09:24 UTC
Created attachment 108649 [details]
OK scenario
Comment 3 gustavo 2014-10-29 21:11:30 UTC
More info:

As shown in the attachments when the filename appears the default location is the same where the file resides. Otherwise, the user homedir is the location shown.

We are using Ubunt 12.04 with KDE.
Comment 4 Beluga 2014-11-15 12:38:51 UTC
(In reply to gustavo from comment #0)
> If testfile.odt
> 
> 1- has permissions 400
> 2- is located on /tmp
> 
> the "save as" dialog will not show the original filename as the candidate
> name for saving - the user will see a blank space instead.

I get the original filename just fine.

Ubuntu 14.10 64-bit Version: 4.4.0.0.alpha2+
Build ID: 5bff4b016c4b44f4123e0e6a4fd4c0c4dc0cfa2d
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2014-11-13_00:14:29
Comment 5 gustavo 2014-11-19 15:42:11 UTC
Additional info:

1:4.2.7~rc2-0ubuntu2~precise1 on 12.04 - FAIL
1:4.2.5~rc2-0ubuntu2~precise1 on 12.04 - WORKS

Both coming from ppa:libreoffice/ppa.

I will update the machine that has the older version to confirm this.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.