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 661751 - gedit refuses to save file when backup cannot be created.
gedit refuses to save file when backup cannot be created.
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: file loading and saving
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-14 11:04 UTC by Pedro Villavicencio
Modified: 2014-08-13 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A scipt to reproduce the bug (150 bytes, text/plain)
2012-05-05 20:37 UTC, Dario
Details

Description Pedro Villavicencio 2011-10-14 11:04:01 UTC
this report has been filed here:

https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/867923

"To reproduce:

1. Make a directory with a text file inside it.
2. Change permissions on the directory so that you do not have write access.
3. Make sure you still have write access to the text file.
4. Open the text file with gedit, change it, and attempt to save.
5. Click "save anyway."

Gedit displays a warning that it cannot back up the text file, with a "save anyway" button. Clicking "save anyway" does nothing, the file is not saved."
Comment 1 Alessandro Basso 2012-02-14 11:30:17 UTC
I can confirm this problem. I'm under ubuntu 11.10, gedit 3.2.3. Thanks!
Comment 2 Dario 2012-05-05 20:37:07 UTC
Created attachment 213527 [details]
A scipt to reproduce the bug

Same form me (gedit - Version 3.4.1 Ubuntu 12.04)

Attached is a script to reproduce the bug, just execute, write something in gedit and try to save.
Comment 3 Adam Dingle 2013-04-25 18:54:05 UTC
I see this too (in git master).

There's one additional problem here.  The info bar that gedit displays in this situation consists of one super-long line:

"gedit could not back up the old copy of the file before saving the new one. You can ignore this warning and save the file anyway, but if an error occurs while saving, you could lose the old copy of the file. Save anyway?"

Because all that text is on a single line, the gedit window becomes really wide when the info bar is displayed.  This is unattractive.  Furthermore, even after I close the info bar (by clicking Don't Save) I'm unable to resize the gedit window to be narrower.
Comment 4 Sébastien Wilmet 2014-08-13 15:08:10 UTC
It seems that it has been fixed with the changes in the file loading and saving code this development cycle (3.13).

(In reply to comment #3)
> Because all that text is on a single line, the gedit window becomes really wide
> when the info bar is displayed.  This is unattractive.  Furthermore, even after
> I close the info bar (by clicking Don't Save) I'm unable to resize the gedit
> window to be narrower.

It is fixed too.