Hi all,

The BBC news gadget
(http://bbcnewsgadget.googlecode.com/svn/trunk/Gadget/bbc_igoogle_ukedition12.xml)
includes some rather strange image URLs for stats tracking that have
quotes and tildes in the query string, which causes Uri.parse to throw
a UriException:

org.apache.shindig.common.uri.Uri$UriException:
java.lang.IllegalArgumentException: java.net.URISyntaxException:
Illegal character in query at index 107:
http://stats.bbc.co.uk/o.gif?~RS~s~RS~News~RS~t~RS~Google_i_1~RS~i~RS~0~RS~p~RS~0~RS~a~RS~Domestic~RS~u~RS~"http://www.google.com/ig/"~RS~r~RS~0~RS~q~RS~~RS~z~RS~51~RS~

Currently in ProxyingVisitor:105 we add null to the list of URIs when
we receive an exception, but this is always a bad idea, because it
will ALWAYS throw a NullPointerException immediately after when we
iterate through the list in DefaultProxyUriManager:92

I'm not familiar enough with this part of the code to see where the
wrong behaviour is, but could somebody please have a look at it?

Thanks,

Mat

-- 
Mat Mannion
Web Developer
IT Services
University of Warwick
Coventry
CV4 7AL

Tel: 024 765 74433
Email: [email protected]

Reply via email to