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 141661 - filechooser accepts directory when in save mode
filechooser accepts directory when in save mode
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.4.x
Other All
: High normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-05-02 17:56 UTC by Christian Persch
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2004-05-02 17:56:08 UTC
Steps to reproduce:
0) Create a directory, "A"
1) Start testfilechooser
2) Set the filechooser to SAVE mode
3) Type in "A"
4) Press Enter to dismiss the filechooser

Actual results:
The filechooser accepts the typed filename and returns it from
gtk_file_chooser_get_uri().

Expected results:
Since the docs say: "GTK_FILE_CHOOSER_ACTION_SAVE Indicates save mode. The file
chooser will let the user pick an existing file, or type in a new filename.",
I'd expect the filechooser NOT to accept the user input, since it refers to an
existing /directory/. The programmer shouldn't have to check if the returned
filename is an existing directory.
Comment 1 Federico Mena Quintero 2004-05-04 19:14:59 UTC
This would need a check in gtkfilechooserdefault.c:check_save_entry().
Comment 2 Elijah Newren 2004-06-19 18:46:13 UTC
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as
Matthias said he was trying to do himself on IRC and was asking for help with. 
If you see this message, it means I was successful at fixing the borken-ness in
bugzilla :)  Sorry for the spam; just query on this message and delete all
emails you get with this message, since there will probably be a lot.
Comment 3 Federico Mena Quintero 2004-08-12 03:10:12 UTC
Fixed on both HEAD and gtk-2-4 branches.