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 576976 - Updating an FTP bookmark's address changes it's name
Updating an FTP bookmark's address changes it's name
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Bookmarks
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 580578 611910 624822 678533 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-27 14:58 UTC by Pedro Villavicencio
Modified: 2014-02-17 21:29 UTC
See Also:
GNOME target: ---
GNOME version: 3.3/3.4


Attachments
Patch to prevent nautilus to create a new name when changing the bookmark URI (1.29 KB, patch)
2013-09-27 13:38 UTC, Emmanuel Vasilakis
reviewed Details | Review
Remove occurrences of name_text_changed (1.35 KB, patch)
2013-10-25 07:34 UTC, Emmanuel Vasilakis
reviewed Details | Review
Patch to prevent nautilus to create a new name when changing the bookmark URI (1.93 KB, patch)
2013-10-27 08:42 UTC, Emmanuel Vasilakis
committed Details | Review

Description Pedro Villavicencio 2009-03-27 14:58:08 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/nautilus/+bug/340380

"
Steps to reproduce :

1) add an authentified FTP bookmark using Places->Connect to server
(give it a name and a default directory)

2) open nautilus and go to bookmars->edit bookmarks and change something in the ftp uri

=> the name is set to the value of the "default directory" set in 1)"

Thanks in advance,
Comment 1 Oskar Berggren 2009-05-19 10:04:42 UTC
This behavior is present also in previous versions, and quite irritating. Bug #580578 is a duplicate of this.
Comment 2 A. Walton 2009-05-19 10:28:28 UTC
*** Bug 580578 has been marked as a duplicate of this bug. ***
Comment 3 Cosimo Cecchi 2010-05-06 17:54:09 UTC
Confirming with master.
Comment 4 Marcus Carlson 2010-07-21 19:45:54 UTC
*** Bug 624822 has been marked as a duplicate of this bug. ***
Comment 5 Marcus Carlson 2010-07-21 22:23:40 UTC
Cosimo, could you describe how this should work instead?
Comment 6 yzubkov 2011-04-24 02:09:21 UTC
Since Cosimo is not preset at this second, I will explain in his place. He could correct me later.
I think the bookmark title should be the same as it was before opening the bookmark manager. It should not change. BTW, can someone acknowledge this bug and change the status.
Comment 7 Cosimo Cecchi 2012-10-22 21:06:51 UTC
*** Bug 611910 has been marked as a duplicate of this bug. ***
Comment 8 Cosimo Cecchi 2012-10-22 21:07:45 UTC
*** Bug 678533 has been marked as a duplicate of this bug. ***
Comment 9 Emmanuel Vasilakis 2013-09-27 13:38:07 UTC
Created attachment 255931 [details] [review]
Patch to prevent nautilus to create a new name when changing the bookmark URI

Hi,

I think the issue is caused by nautilus bookmark editor, which actually creates a new bookmark when editing one. The code to create the new bookmark (which will replace the old one), checks whether the name field is changed. When it doesn't, it passes NULL to nautilus_bookmark_new, thus perhaps causing it to create a new name for the new bookmark based on the URI.

Not sure why this is so. If this was expected behaviour, please ignore the patch.
Comment 10 Cosimo Cecchi 2013-09-28 23:21:47 UTC
Review of attachment 255931 [details] [review]:

::: src/nautilus-bookmarks-window.c
@@ +520,2 @@
 	bookmark = nautilus_bookmark_new (location,
+					  gtk_entry_get_text (GTK_ENTRY (self->priv->name_field)));

I think this makes sense, but this function was the only user of self->priv->name_text_changed, so that should be removed entirely.
Comment 11 Nelson Benitez 2013-10-05 00:40:31 UTC
(In reply to comment #10)
> Review of attachment 255931 [details] [review]:

I think Emmanuel did not received bugzilla mail about your review, he was not in the CC list members of the bug, I've now manually added him, this is a nasty bugzilla bug that I've suffered myself too, where attaching a patch to a bug does not automatically include you in the CC list as you would expect the same way this is done for regular comments.
Comment 12 Emmanuel Vasilakis 2013-10-05 06:10:45 UTC
Ah, yes, just got the mail, thanks Nelson.

I'll try to locate and remove self->priv->name_text_changed too.

Thanks!
Comment 13 Emmanuel Vasilakis 2013-10-25 07:34:26 UTC
Created attachment 258084 [details] [review]
Remove occurrences of name_text_changed

Here's a small patch to remove the rest of the name_text_changed occurrences within the nautilus-bookmarks-window.c file. Sorry it took so long, and sorry I couldn't merge both in one patch.

thanks.
Comment 14 Cosimo Cecchi 2013-10-25 20:00:32 UTC
Review of attachment 258084 [details] [review]:

Looks good - can you squash the two patches together?
Comment 15 Emmanuel Vasilakis 2013-10-27 08:42:59 UTC
Created attachment 258204 [details] [review]
 Patch to prevent nautilus to create a new name when changing the bookmark URI

Here it is (I think), trying to get the hang of it :-)

Thanks
Comment 16 Cosimo Cecchi 2014-02-17 21:29:12 UTC
Thanks, I now pushed this to git master.