2014-07-12, 11:11
Dear community,
I'm not quite sure if I should call my problem a bug or a feature request.
As probably way too often there is an incompatibility with my Yamaha Receiver R-N500 and upnp network playback from xbmc.
When traversing folders on xbmc media server via upnp, the receiver sometimes shows "Access Error" and drops back into the root directory.
I tracked down the problem using WireShark. It seems that the Yamaha receiver sends a malformed URL to xbmc. The ampersand in the xml-request is not properly escaped. For your reference see the recorded packets of a good request and a bad request below.
It is clearly a bug in the Yamaha firmware and I complained already the their support - but was is the chance that they are actually fixing it? Du you have any ideas for a workaround from the xbmc side? I would be more than happy to continue using xmbc for this!
Best regards,
Michael Leigsnering
Good request:
Bad request (immediately following after the above request):
Note that the ampersand in the <ObjectID> xml tag is not escaped.
I'm not quite sure if I should call my problem a bug or a feature request.
As probably way too often there is an incompatibility with my Yamaha Receiver R-N500 and upnp network playback from xbmc.
When traversing folders on xbmc media server via upnp, the receiver sometimes shows "Access Error" and drops back into the root directory.
I tracked down the problem using WireShark. It seems that the Yamaha receiver sends a malformed URL to xbmc. The ampersand in the xml-request is not properly escaped. For your reference see the recorded packets of a good request and a bad request below.
It is clearly a bug in the Yamaha firmware and I complained already the their support - but was is the chance that they are actually fixing it? Du you have any ideas for a workaround from the xbmc side? I would be more than happy to continue using xmbc for this!
Best regards,
Michael Leigsnering
Good request:
Code:
POST /ContentDirectory/370e8b57-d95a-49c0-b4ed-3b1fa5041525/control.xml HTTP/1.1
Host: 192.168.178.20:1964
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
USER-AGENT: KnOS/3.2 bridgeCo-DMP/3.0 DLNADOC/1.50 INTEL_NMPR/2.0
CONNECTION: close
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 651
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<ObjectID>musicdb://artists/10/?albumartistsonly=false</ObjectID>
<BrowseFlag>BrowseDirectChildren</BrowseFlag>
<Filter>@childCount,dc:creator,upnp:album,upnp:artist,res,res@protection,res@duration,res@size,upnp:albumArtURI,upnp:searchClass</Filter>
<StartingIndex>0</StartingIndex>
<RequestedCount>50</RequestedCount>
<SortCriteria>+dc:title</SortCriteria>
</u:Browse>
</s:Body>
</s:Envelope>
HTTP/1.1 200 OK
Ext:
Date: Thu, 10 Jul 2014 19:48:55 GMT
Content-Length: 1114
Content-Type: text/xml; charset="utf-8"
Connection: close
Server: UPnP/1.0 DLNADOC/1.50 Platinum/0.6.9.1
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result><DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"><container id="musicdb://artists/10/21/?albumartistsonly=false&amp;artistid=10" parentID="musicdb://artists/10/?albumartistsonly=false" restricted="1"><dc:title>Ceu</dc:title><dc:creator>Unknown</dc:creator><upnp:artist role="Performer">Ceu</upnp:artist><upnp:artist role="AlbumArtist">Ceu</upnp:artist><upnp:album>Ceu</upnp:album><upnp:class>object.container.album.musicAlbum</upnp:class></container></DIDL-Lite></Result><NumberReturned>1</NumberReturned><TotalMatches>1</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Bad request (immediately following after the above request):
Note that the ampersand in the <ObjectID> xml tag is not escaped.
Code:
POST /ContentDirectory/370e8b57-d95a-49c0-b4ed-3b1fa5041525/control.xml HTTP/1.1
Host: 192.168.178.20:1964
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
USER-AGENT: KnOS/3.2 bridgeCo-DMP/3.0 DLNADOC/1.50 INTEL_NMPR/2.0
CONNECTION: close
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 682
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<ObjectID>musicdb://artists/10/21/?albumartistsonly=false&artistid=10</ObjectID>
<BrowseFlag>BrowseDirectChildren</BrowseFlag>
<Filter>@childCount,dc:creator,upnp:album,upnp:artist,res,res@protection,res@duration,res@size,upnp:albumArtURI,upnp:searchClass</Filter>
<StartingIndex>0</StartingIndex>
<RequestedCount>50</RequestedCount>
<SortCriteria>+upnp:originalTrackNumber</SortCriteria>
</u:Browse>
</s:Body>
</s:Envelope>
HTTP/1.1 500 Bad Request
Date: Thu, 10 Jul 2014 19:48:58 GMT
Connection: close
Server: UPnP/1.0 DLNADOC/1.50 Platinum/0.6.9.1