Bug 85618 - inconsistent "save as" dialog behaviour - permissions and location dependence
Summary: inconsistent "save as" dialog behaviour - permissions and location dependence
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version: 4.2.7.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 20:21 UTC by gustavo
Modified: 2014-11-19 15:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
FAIL scenario (43.33 KB, image/png)
2014-10-29 21:09 UTC, gustavo
Details
OK scenario (47.91 KB, image/png)
2014-10-29 21:09 UTC, gustavo
Details

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.