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 652953 - track is removed from playlist if importing it via Files (instead of Folders) when rescanning library, caused by wrongly encoded URI
track is removed from playlist if importing it via Files (instead of Folders)...
Status: RESOLVED DUPLICATE of bug 661100
Product: banshee
Classification: Other
Component: Importing
2.0.0
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-19 17:37 UTC by Fabian Zimmermann
Modified: 2011-12-11 21:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabian Zimmermann 2011-06-19 17:37:01 UTC
Playlist entries may be removed if they contain special-chars like "&" or ",".

To reproduce:

* add a file which contains "&" in filename to collection "Import Media"
* add the file to a playlist
* rescan your collection "Rescan Music Library"
* file will be removed out of playlist.

this is caused by "Import Media" which does not encode special chars in URI-field correctly.

---

f.e. "Appleblim & Ramadanman - Void 23 (Carl Craig Reedit)"

* Import file "Import Media"
* banshee will NOT encode "&" as "%26" during "Import Media".

 URI: Appleblim%20&%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit).mp3

* banshee is unable to find the entry in "Rescan Music Library"-Mode, because it tries to find 

  URI: Appleblim%20%26%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit)

* banshee will create a new db-entry.

  URI: Appleblim%20%26%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit)

* banshee will remove the old db-entry (which contains "&" in uri-field)
* banshee will clean all references in playlists.

I think "Import Media" should encode chars correctly, too.
Comment 1 Fabian Zimmermann 2011-06-19 17:37:55 UTC
Banshee 2.0 (2.0.1) http://banshee.fm

up-to-date Ubuntu 11.04
Comment 2 Fabian Zimmermann 2011-06-20 07:27:39 UTC
works fine in Banshee 1.6.1 ( Ubuntu 10.04 LTS )
Comment 3 Andrés G. Aragoneses (IRC: knocte) 2011-06-20 10:57:57 UTC
Fabian, I just tried to reproduce the bug and couldn't.

I'm running Banshee 2.0.0 in openSUSE 11.4.

I got an MP3 file, I renamed it as "Appleblim & Ramadanman - Void 23 (Carl Craig Reedit).mp3" and placed in my $HOME/Music folder.

I import the folder, the file is imported fine.
I create a playlist and include the track in the playlist.
I then rescan my music library, and the file is not removed from the playlist.

Any insight of what I'm doing differently than you?
Comment 4 Fabian Zimmermann 2011-06-20 13:05:42 UTC
(In reply to comment #3)
> Fabian, I just tried to reproduce the bug and couldn't.
> 
> I'm running Banshee 2.0.0 in openSUSE 11.4.
> 
> I got an MP3 file, I renamed it as "Appleblim & Ramadanman - Void 23 (Carl
> Craig Reedit).mp3" and placed in my $HOME/Music folder.
> 
> I import the folder, the file is imported fine.
> I create a playlist and include the track in the playlist.
> I then rescan my music library, and the file is not removed from the playlist.
> 
> Any insight of what I'm doing differently than you?

First, many thanks for your fast reply.

I installed Ubuntu 11.04 into a VBox to get a clean env. 

Here are small video to show the steps required to reproduce this bug.

http://www.mediafire.com/?p8cq4fmm8pk47za

If you need further information, don't hesitate to ask.
Comment 5 Andrés G. Aragoneses (IRC: knocte) 2011-06-20 13:24:01 UTC
(In reply to comment #4)
> Here are small video to show the steps required to reproduce this bug.
> 
> http://www.mediafire.com/?p8cq4fmm8pk47za
> 
> If you need further information, don't hesitate to ask.

Cool! It seems there are 2 different things we do:

- You import the file, rather than the directory that contains the file.
- You include the file in the playlist by right clicking on the album and selecting some option* (I was using drag&drop from the track).

* Not sure yet which option, I'll look more carefully again (this is a bit complex because you're running banshee in a translated language, next time it would be great to run banshee with "LANG=C banshee" so it runs on English.
Comment 6 Fabian Zimmermann 2011-06-20 13:29:06 UTC
Please hold the line.. LANG=C and logs will follow.
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2011-06-20 13:30:55 UTC
Ok! The problem only happens when importing via "Files" instead of "Folders".
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2011-06-20 13:31:18 UTC
(In reply to comment #6)
> Please hold the line.. LANG=C and logs will follow.

Don't worry! I just managed to reproduce it :)
Comment 9 Fabian Zimmermann 2011-06-20 13:41:37 UTC
same "bug" if you try to import playlists (M3U)
Comment 10 Mark Stover 2011-07-28 05:26:06 UTC
My bug https://bugzilla.gnome.org/show_bug.cgi?id=655385 may be a duplicate.

Seems that if playlists contain filenames with # symbols, they won't show up in the playlist unless it is URLEncoded first.
Comment 11 Bertrand Lorentz 2011-12-11 21:04:04 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed.

The fix is already available in Banshee 2.3.2.

*** This bug has been marked as a duplicate of bug 661100 ***