|Title|Ampersand encoded incorrectly in Page Info RSS Feed
|Date|25-May-2006 09:13:23 EEST
|Version|JSPWiki v2.4.6-beta
|Submitter|68.82.69.104
|[Bug criticality]|MediumBug
|Browser version|Firefox
|[Bug status]|NotABug
|[PageProvider] used|
|Servlet Container|Tomcat
|Operating System|Windows XP
|URL|http://jaguar.cis.udel.edu:8050/JSPWiki/rss.jsp?page=Main&mode=wiki
|Java version|1.5

There is an RSS logo on the "page info" page of my JSPWiki.   Its behavior is strange.

* If I make it a live bookmark in Firefox, it behaves as an RSS Feed, but the ampersand is encoded incorrectly in the URLs.  It shows up as & instead of as & inside the actual URL.  This is probably necessary to produce valid XML, but the effect is that the links don't work properly.  For example:

{{{
Main version 10 links to http://jaguar.cis.udel.edu:8050/JSPWiki/Wiki.jsp?page=Main&version=10

Main version 9 links to
http://jaguar.cis.udel.edu:8050/JSPWiki/Wiki.jsp?page=Main&version=9

etc...
}}}

what you get instead is:

{{{
Main version 10 links to http://jaguar.cis.udel.edu:8050/JSPWiki/Wiki.jsp?page=Main&version=10

Main version 9 links to
http://jaguar.cis.udel.edu:8050/JSPWiki/Wiki.jsp?page=Main&version=9

etc...
}}}

Note that these links don't do what they are supposed to do.

The plot thickens: if you just click on the link in Firefox, the XML file downloads with the title rss.jsp, which is sort of odd.  Clicking on that same link in Firefox does nothing.

Footnote: In the WikiMarkup for this bug description, I had to type & in the URLs above to get & to show up in the formatted text.  It is the formatted version that conveys my intended meaning.  (And I had to type &amp to get & to show up in this footnote,  etc.  I'm not reporting __that__ as a bug--- I'm just clarifying.)

----

I think Firefox is broken in this regard - the links really do need to be written as {{{ & }}}.

-- JanneJalkanen


----

I think it is a firefox bug:

What works:
{{{
<a href="somepage.html?code=1&amp;item=2">go page</a>

<form action="somepage.html?code=1&amp;item=2"></form>
}}}

Does not work:
{{{
<script>
document.location.href='somepage.html?code=1&amp;item=2';
</script>
}}}


output: {{{
http:\\www.somedomain\somepage.html?code=1&amp;item=2
}}}


Mayber I could be using something that is not allowed. But did not find anything in the w3c documentation. IE6/IE7 works fine.



--[Philip|mailto:obiwan@usrf.nl], 13-Aug-2007