[Bug] Error saving cover image if path contains ampersand

Need help? Post your questions here.

Moderator: moderators

[Bug] Error saving cover image if path contains ampersand

Postby mgrant » Mon Jun 08, 2009 2:04 am

Some of the folders in my music collection contain an ampersand. Subsonic throws an exception when attempting to save cover images into such folders.


[6/8/09 1:59:12 AM GMT] INFO AmazonSearchService Found 1 cover image(s) at Amazon.com in 552 ms.
[6/8/09 1:59:21 AM GMT] WARN CoverArtService Failed to save cover art for /music/You, Me & Iowa/You, Me & Iowa
mgrant
 
Posts: 76
Joined: Mon Mar 03, 2008 1:15 am

Postby mixmaster » Mon Jun 08, 2009 3:59 pm

Hmmm, I cannot repro this. I was able to download & save cover art for "A Man & The Blues". But I'm on Windows, looks like you're using a *nix?
________
Last edited by mixmaster on Sun Mar 06, 2011 2:10 am, edited 1 time in total.
mixmaster
 
Posts: 121
Joined: Thu Nov 13, 2008 5:30 am

Postby jigsaw » Mon Jun 08, 2009 4:47 pm

Did a quick test on my Linux, but it works fine for me. I tested with both a comma and an ampersand. Maybe you should check the logs and see if you have any more info in the error message? Say maybe a "Permission denied" error message or something..?
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby mgrant » Thu Jun 25, 2009 8:43 pm

jigsaw wrote:Did a quick test on my Linux, but it works fine for me. I tested with both a comma and an ampersand. Maybe you should check the logs and see if you have any more info in the error message? Say maybe a "Permission denied" error message or something..?


Looks like the problem is when the filesystem contains an HTML escaped ampersand (i.e. &)

So, in my example the actual path is:

/music/You\,\ Me\ \&amp\;\ Iowa/You\,\ Me\ \&amp\;\ Iowa

When displayed in the browser (or in the log) it automatically converts the "&" to just "&".

Apparently that's where subsonic chokes. Instead of trying to save the album art to:

/music/You\,\ Me\ \&amp\;\ Iowa/You\,\ Me\ \&amp\;\ Iowa

is tries to save it to:

/music/You\,\ Me\ \&\ Iowa/You\,\ Me\ \&\ Iowa

which, of course, doesn't exist.
mgrant
 
Posts: 76
Joined: Mon Mar 03, 2008 1:15 am

Postby mgrant » Sat Aug 01, 2009 11:55 pm

bump...

Any thoughts on if this is an actual bug? And if so when/if it will get fixed? Now that I understand why it's failing I've just been "fixing" the paths. It seems that the software I use to manage the folder structure builds the paths from the ID3 tags and some of the ID3 tags contain the offending HTML (mostly "&" instead of the simpler "&".

Thanks,

-mg
mgrant
 
Posts: 76
Joined: Mon Mar 03, 2008 1:15 am

Postby sindre_mehus » Sun Aug 02, 2009 7:25 am

I've put it on my todo list, but can't promise when it will be fixed.

Thanks for reporting it ;-)
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests