Bugzilla – Bug 1590
songinfo.xml does not return correct information
Last modified: 2008-09-15 14:37:04 UTC
With 6.0.2 and prior versions, the URL http://myserver:9000/xml/songinfo.xml?item=n returns full tag information for the specified item. In 6.0.3 (SlimServer_v2005-05-19.exe), the same URL returns only a truncated comment tag. This breaks our application TelCanto for SlimServer which depends on the XML interface.
I think this stems from a fix for bug 1484. The itemObj is not used consistently. songinfo by itself seems to use 'track' as the object, while the status header uses 'itemObj'. XML skin seems to use _xml_song for both. The simple fix would be to add: $params->{'itemobj'} = $track unless $params->{'itemobj'}; at Pages.pm line 1876, but a more complete fix would be to pick move everything to a more consistent object. 'track', 'trackobj' or 'itemobj' throughout.
Created attachment 521 [details] patch for above here is the patch to do jsut as I had described for the simple fix. Hopefully Dan will commit this as I'll be on a plane to the UK shortly.
I've commited kdf's patch as subversion change 3279.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.