[Koha-bugs] [Bug 23378] New: Invalid OPAC search RSS: unescaped characters
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 25 22:43:55 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23378
Bug ID: 23378
Summary: Invalid OPAC search RSS: unescaped characters
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: oleonard at myacpl.org
Reporter: victor.grousset at biblibre.com
QA Contact: testopia at bugs.koha-community.org
== Test plan ==
1. search something in the OPAC
2. open the RSS feed/copy the URL
3. validate it: https://validator.w3.org/feed/
4. you will get something like:
XML parsing error: <unknown>:16:48: not well-formed (invalid token)
<link>/cgi-bin/koha/opac-search.pl?idx=kw&q=MY_SEARCH_QUERY_HERE&format=rss2</link>
It seems that the equal sign needs some escaping.
I heard there were escape changes in the last few versions. Is that related?
The version 16.11 is said to not have this issue (although testing on a 16.11
demo gives the same result)
As someone who was consuming the RSS feed couldn't anymore when switching from
16.11 to 18.11
There are still escape differences between these versions even if the first
error is still here. Here are the differences if that helps.
18.05
<link>/cgi-bin/koha/opac-search.pl?idx=kw&q=lea&format=rss2</link>
<atom:link rel="self" type="application/rss+xml"
href="/cgi-bin/koha/opac-search.pl?idx%3Dkw%26q%3Dlea&sort_by=acqdate_dsc&format=rss2"/>
18.11
<link>/cgi-bin/koha/opac-search.pl?idx=kw&q=lea&format=rss2</link>
<atom:link rel="self" type="application/rss+xml"
href="/cgi-bin/koha/opac-search.pl?idx=kw&q=lea&sort_by=acqdate_dsc&format=rss2"/>
«idx=kw&» vs «idx=kw&»
«idx%3Dkw%26q%3D» vs «idx=kw»
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list