Bug 5146 - HTML-encoded text appears in Playlist pane
: HTML-encoded text appears in Playlist pane
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.5.2
: Macintosh MacOS X 10.4
: P2 minor (vote)
: ---
Assigned To: Squeezebox QA Team email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-03 13:47 UTC by Stuart Shelton
Modified: 2007-07-06 08:26 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Screen-capture of Safari 3.0 window demonstrating encoding problem (641.79 KB, image/png)
2007-07-05 11:30 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2007-07-03 13:47:55 UTC
In my music folder is a "The Good, The Bad & The Queen" directory - which is displayed correctly in the left-pane of the web interface.

However, if I click the gadget to play the whole album, then the playlist display in the right pane displays "<song> from The Good, The Bad &amp; The Queen by The Good, The Bad &amp; The Queen".

It looks as if the track metadata is being double-encoded but only once-decoded: the actual page source contains "&amp;amp;".
Comment 1 KDF 2007-07-03 16:56:44 UTC
I'm not seeing this.  Can you provide more details:

screenshot (if not possible, which skin are you using?)
file format of tracks?

just to be sure, you might also want to force a cache refresh by clearing the browser cache manually and reloading, or refreshing the browser window several times.
Comment 2 Stuart Shelton 2007-07-05 11:30:55 UTC
Created attachment 2061 [details]
Screen-capture of Safari 3.0 window demonstrating encoding problem

Note the "&amp;" text present in the Artist and Album names in the right-hand pane...
Comment 3 Stuart Shelton 2007-07-05 11:43:52 UTC
I've attached a screen-shot showing the problem occurring.

I also noticed that the display of the SqueezeBox itself also displayed "&amp;" when the title scrolled across - so this isn't purely a Web UI issue.

And, honestly, the filesystem does have the files correctly named!

$ ls -lR /storage/data/iAudio/Music/OGG/The\ Good\,\ The\ Bad\ \&\ The\ Queen/
/storage/data/iAudio/Music/OGG/The Good, The Bad & The Queen/:
total 4.0K
drwxrwxr-x 2 storage storage 4.0K 2007-06-17 02:19 The Good, The Bad & The Queen/

/storage/data/iAudio/Music/OGG/The Good, The Bad & The Queen/The Good, The Bad & The Queen:
total 57M
-rw-rw-r-- 1 storage storage 4.5M 2007-06-16 13:00 80's Life.ogg
-rw-rw-r-- 1 storage storage 3.4M 2007-06-16 13:03 A Soldier's Tale.ogg
-rw-rw-r-- 1 storage storage 3.5M 2007-06-16 13:01 Behind The Sun.ogg
-rw-rw-r-- 1 storage storage 3.1M 2007-06-16 13:04 Green Fields.ogg
-rw-rw-r-- 1 storage storage 5.1M 2007-06-16 13:03 Herculean.ogg
-rw-rw-r-- 1 storage storage 4.2M 2007-06-16 13:00 History Song.ogg
-rw-rw-r-- 1 storage storage 3.5M 2007-06-16 12:59 Kingdom Of Doom.ogg
-rw-rw-r-- 1 storage storage 4.2M 2007-06-16 13:03 Nature Springs.ogg
-rw-rw-r-- 1 storage storage 5.5M 2007-06-16 13:00 Northern Whale.ogg
-rw-rw-r-- 1 storage storage 5.1M 2007-06-16 13:03 The Bunting Song.ogg
-rw-rw-r-- 1 storage storage 9.9M 2007-06-16 13:07 The Good, The Bad & The Queen.ogg
-rw-rw-r-- 1 storage storage 5.5M 2007-06-16 13:05 Three Changes.ogg

(Notice how mangled track 12 has become in the screenshot)
Comment 4 Spies Steven 2007-07-05 11:50:12 UTC
Stuart, do these files have Vorbis Comments or are you only using the guess tag feature?  Would you attach one of the ogg files in question?
Comment 5 Stuart Shelton 2007-07-06 05:48:03 UTC
D'oh!

You're absolutely right - the problem wasn't in the SlimServer software, it was in the tags of the file itself.
I've corrected the tags in the files, and now everything is fine!

Sorry for troubling you :)

(Although, as a low-priority enhancement, I wonder if there'd be any benefit in checking tags for errors such as this, and displaying them "correctly"... ?)