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 638589 - Fails to load cover art if the path contains ':' character (UriFormatException)
Fails to load cover art if the path contains ':' character (UriFormatException)
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: Metadata
1.8.0
Other Linux
: Normal normal
: 2.6.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 654213 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-01-03 17:25 UTC by Todd Wilson
Modified: 2014-03-06 06:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Todd Wilson 2011-01-03 17:25:01 UTC
I placed a cover.jpg file in one of my Audiobook directories, opened the audiobook from the list, right-clicked on the book icon, and selected "Choose New Cover Art...".  In the file dialog, my jpg file shows up with a correct thumbnail.  I select the file and click "Open", but no change is made to the cover art, and I get the following in my debug output:

[1 Warn  14:37:24.175] Caught an exception - System.UriFormatException: URI scheme must start with a letter and must consist of one of alphabet, digits, '+', '-' or '.' character. (in `System')
  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in <filename unknown>:0 
  at System.Uri.ParseUri (UriKind kind) [0x00000] in <filename unknown>:0 
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in <filename unknown>:0 
  at System.Uri..ctor (System.String uriString) [0x00000] in <filename unknown>:0 
  at Banshee.Collection.Gui.CoverArtEditor+EditorBox.SetCoverArt (Banshee.Collection.TrackInfo track, System.String path) [0x00000] in <filename unknown>:0 
  at Banshee.Collection.Gui.CoverArtEditor+EditorBox.<EditorBox>m__15 (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 

I've also tried using the same file to replace cover art on albums in my Music source, with the same behavior.

However, if I copy the cover.jpg file to ~/Desktop and then try to add it from there, it works.  Here are the two relevant paths:

/home/twilson/Audiobooks/J.R.R.\ Tolkien/The\ Hobbit:\ Unabridged/cover.jpg
/home/twilson/Desktop/cover.jpg (same file, or symbolic link)

Could it be the ':' character?  Shouldn't any legal path work?
Comment 1 Todd Wilson 2011-01-22 18:16:33 UTC
I can confirm that this problem persists (for me) in 1.9.2.  I didn't change the "Version" in the bug report, though (it didn't seem like I should).
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2014-02-21 13:26:27 UTC
(In reply to comment #1)
> Could it be the ':' character?

Yes, seems so.

> Shouldn't any legal path work?

Yes, it is a bug. (Confirming because I saw already a duplicate bug, thus, more than one user is affected.)
Comment 3 Andrés G. Aragoneses (IRC: knocte) 2014-02-21 13:27:01 UTC
*** Bug 654213 has been marked as a duplicate of this bug. ***
Comment 4 Dmitrii Petukhov 2014-03-06 00:08:24 UTC
I have mono version 3.2.1 and I can't reproduce the bug, can you tell us your mono version?
Comment 5 Martin Stjernholm 2014-03-06 04:58:36 UTC
My test case works too now. Mono 2.10.8 and Banshee 2.4.1.
Comment 6 Andrés G. Aragoneses (IRC: knocte) 2014-03-06 06:47:41 UTC
Ok, this sounds like it was a Mono bug, so I'm going to close it as NOTGNOME.

If anyone can still reproduce this, please mention your mono version, and we may reopen the bug.