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 309729 - Spurious "file exists" error when saving to dirname/filename
Spurious "file exists" error when saving to dirname/filename
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other Linux
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 324318 324811 325576 325679 325749 326853 327289 329979 330030 331343 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-07 16:58 UTC by Akkana Peck
Modified: 2006-02-16 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Akkana Peck 2005-07-07 16:58:24 UTC
Version details: gtk+ 2.6.8.1
Distribution/Version: Debian sid

Do a "Save As" and navigate to a directory that exists.
In the filename field, type: dirname/filename.ext
where dirname is a subdirectory that already exists, and filename.ext is a
filename which does not yet exist.

A "File exists" confirmation dialog pops up, falsely saying that the file
already exists.

Sven suggested on IRC that it might be considered a gtk+ bug, but then said the
fix would be in GIMP: "either we revert to the 2.2 behaviour or we switch to
gnome-vfs". So I'm filing this on GIMP, but feel free to move it to GTK+ if
that's a more appropriate place.
Comment 1 Sven Neumann 2005-07-07 17:15:08 UTC
The culprit is that we are calling gtk_file_chooser_set_uri() as a way to find
out if the file exists or not. This seemed to be a reasonable hack to work
around the problem that we cannot find out if a remote file exists. This will
only be necessary if we actually add code to save to remote locations and unset
the local-only property of the file-chooser.
Comment 2 Sven Neumann 2005-08-23 11:16:15 UTC
GTK+ 2.8 provides the API we need: gtk_file_chooser_set_do_overwrite_confirmation().
Comment 3 Carol 2005-10-16 21:28:03 UTC
I am using gimp built against gtk+-2.8.4 and still get this problem:
http://carol.gimp.org/files/save-misinformation.png
Comment 4 Sven Neumann 2005-10-19 19:50:04 UTC
Not surprisingly. We do not yet depend on 2.8 and thus we are not yet using the
API that will fix the problem.
Comment 5 Manish Singh 2005-12-17 20:39:38 UTC
*** Bug 324318 has been marked as a duplicate of this bug. ***
Comment 6 Manish Singh 2005-12-22 18:06:45 UTC
*** Bug 324811 has been marked as a duplicate of this bug. ***
Comment 7 Michael Natterer 2005-12-28 20:03:39 UTC
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.[ch]: set the new
	"do-overwrite-confirmation" property on GtkFileChooser. Removed
	gimp_file_overwrite_dialog().

	* app/dialogs/file-save-dialog.c (file_save_dialog_check_uri):
	removed broken code which tried to figure if a file exists.
	Fixes bug #309729.

	* app/widgets/gimpdnd-xds.c: added gimp_file_overwrite_dialog()
	here as private utility function.

Comment 8 Sven Neumann 2006-01-03 10:35:43 UTC
*** Bug 325576 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2006-01-04 13:21:56 UTC
*** Bug 325679 has been marked as a duplicate of this bug. ***
Comment 10 Tor Lillqvist 2006-01-11 10:04:19 UTC
*** Bug 325749 has been marked as a duplicate of this bug. ***
Comment 11 Michael Schumacher 2006-01-13 15:06:29 UTC
*** Bug 326853 has been marked as a duplicate of this bug. ***
Comment 12 Michael Schumacher 2006-02-05 18:32:23 UTC
*** Bug 330030 has been marked as a duplicate of this bug. ***
Comment 13 Sven Neumann 2006-02-06 08:12:57 UTC
*** Bug 329979 has been marked as a duplicate of this bug. ***
Comment 14 muzh 2006-02-15 07:07:09 UTC
*** Bug 327289 has been marked as a duplicate of this bug. ***
Comment 15 Sven Neumann 2006-02-16 07:48:39 UTC
*** Bug 331343 has been marked as a duplicate of this bug. ***