Closed GoogleCodeExporter closed 8 years ago
1. Such links are incorrect. hrefs should be URLEncoded, not replaced by XML
entities.
2. We can try to add support for that invalid links but we need an URL of
server where we can test.
Original comment by Andrei.K...@gmail.com
on 4 Jul 2013 at 6:31
>1. Such links are incorrect. hrefs should be URLEncoded, not replaced by XML
entities.
URLEndcoding is not the problem here. The link of the OPDS item contains a
request parameter which is not interpreted by EBD correctly.
Let's asume following link:
/mycatalog/feed.php?page=1&db=3&whatever=abc
this has to be encoded inside a XML attribute as:
/mycatalog/feed.php?page=1&db=3&whatever=abc
i.e.:
<entry>
<link href="/mycatalog/feed.php?page=1&db=3&whatever=abc" />
</entry>
because there is no 'standalone' ampersand allowed inside of XML.
The following is _not_ well-formed (see here for example:
http://stackoverflow.com/questions/6550451/xml-attribute-not-well-formed):
<entry>
<link href="/mycatalog/feed.php?page=1&db=3&whatever=abc" />
</entry>
So again: the link is not invalid instead it's 100% correct. What's 'invalid'
is the interpretation of the link attribute by EBD.
>2. We can try to add support for that invalid links but we need an URL of
server where we can test.
I am using COPS as OPDS server. You can find a demo page here :
http://cops-demo.slucas.fr/feed.php
Go deep until the link contains at least two request parameters. For example
Tags -> Fantasy -> ... and check which url EBD requests.
Original comment by joma.k...@gmail.com
on 5 Jul 2013 at 11:24
Fixed.
Original comment by Alexander.V.Kasatkin@gmail.com
on 25 Dec 2013 at 12:48
Original issue reported on code.google.com by
joma.k...@gmail.com
on 4 Jul 2013 at 12:10