After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 152492 - GtkFileSelection incorrently handles restricted directories
GtkFileSelection incorrently handles restricted directories
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-09-13 12:00 UTC by Iago Rubio
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Iago Rubio 2004-09-13 12:00:42 UTC
Description:

The GtkFileSelection dialog does not warn users when selecting a directory where
he/she have no read permisions. 

What happened:

When a user try to select a directory where he/she have no permissions, the
dialog changes as he/she was opening an empty directory and does not warn the
user about he can not read the directory. Usually - even while the selection
field does not change - the user thinks he opened an empty directory.

Expected behaviour:

The user should know he's not opening the directory, and/or he can not read it.

How to reproduce:

* create a directory
* touch a file into
* change permissions -r dir
* open it with the file selector dialog.

Additional information:

In gtkfilesel.c (gtk_file_selection_populate) both the file and dir stores, are
cleared before to stat the directory to see if it can be opened. One possible
fix, could be to avoid to clear those models, until the directory could be
succesfully opened.

This way at least the user could know he can not enter the directory as his
clicks will have no effect. This could be anoying but less confusing than clear
the stores, leting the user to think he succesfully opened an empty directory.

An error dialog could be shown to the user - for better usability - warning him
about his lack of permissions to read the directory.
Comment 1 Owen Taylor 2004-09-13 12:10:24 UTC
We won't be enhancing the old GtkFileSelection widget at all at this point.
Comment 2 Iago Rubio 2004-09-13 12:38:18 UTC
Ok. Thanks for the quick respose.