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 565934 - Content of file with .theme extension is destroyed when renamed
Content of file with .theme extension is destroyed when renamed
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.22.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-29 13:11 UTC by Martin Mai
Modified: 2021-06-18 15:14 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Martin Mai 2008-12-29 13:11:19 UTC
Please describe the problem:
Originally reported on https://bugs.launchpad.net/nautilus/+bug/277379

I'm using Ubuntu 8.04, and doing some file work using Nautilus 2.22.3. If I rename a file that already has the .theme extension, it's contents are suddenly replaced. The file itself is however not actually renamed.

I am attaching the destroyed file. The version of the file that's on the server is a few hundred lines long. Please note that while the upload is named "chameleon.theme" it shows in my system as lkbart.theme. Will attach screen shots to prove this.

This doesn't happen when adding the .theme extension to a file that doesn't already have it. It doesn't appear to matter what you rename the file TO, if it HAD the .theme extension, it is destroyed.

Steps to reproduce:
1. Open Nautilus to home directory
2. Create a new file in Nautilus Right click -> Create Document -> empty file
3. Name the file foo.txt
4. Edit the file (double click) - add several lines of text.
5. Rename the file to foo.bar


Actual results:
Contents of the file are replaced with INI formatted data. Sometimes the previous text is partially preserved at the bottom of the file - heavily truncated.

Expected results:
file to be renamed and preserved as is.

Does this happen every time?
Yes

Other information:
Steps to confirm file is not actually renamed:
1. Open a new terminal.
2. CD to home directory
3. ls
4. foo.theme shows in the listing - foo.bar is not present.
5. cat foo.theme prints the INI formated data that Nautilus thinks is in foo.bar
Comment 1 Isaac Raway 2009-01-08 04:52:15 UTC
(Originally posted at https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/277379/comments/2)

*** Missed a step to reproduce ***

1. Open Nautilus to home directory
2. Create a new file in Nautilus Right click -> Create Document -> empty file
3. Name the file foo.txt
4. Edit the file (double click) - add several lines of text.
5. *** Rename the file to foo.theme (Right click -> Rename) ***
6. Rename the file to foo.bar (Right click -> Rename)
Comment 2 Isaac Raway 2009-01-08 04:53:37 UTC
Per https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/277379/comments/3 please set this bug to confirmed.
Comment 3 André Klapper 2021-06-18 15:14:08 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.