Preloader erroring out on Daily Horoscopes gadget & other weirdness
-------------------------------------------------------------------

                 Key: SHINDIG-411
                 URL: https://issues.apache.org/jira/browse/SHINDIG-411
             Project: Shindig
          Issue Type: Bug
          Components: Gadget Rendering Server (PHP)
            Reporter: Chris Chabot


When trying out the the Daily Horoscopes gadget 
(http://www.google.com/ig/modules/horoscope.xml) i saw the variable 
substitution hasn't been done, since the preload key is:
   gadgets.io.preloaded_ = 
{"http:\/\/www.tarot.com\/rss\/generate.php?code=google-ig&feed=daily_horoscope&sign=__UP_sign__"...
that should be
   gadgets.io.preloaded_ = 
{"http:\/\/www.tarot.com\/rss\/generate.php?code=google-ig&feed=daily_horoscope&sign=Virgo"

Also, probably un-related to this, it also seems to error out on the content 
(however it also does this when i disable preloading, so i think it's probably 
either a gadget bug, or a bug in our rss parsing code or something?), firebug 
reports:

   syntax error: (g="UTF-8" ?>\n

A quick gandget at the content shows that it's the header of the RSS feed it 
errors out on:
   <?xml version="1.0" encoding="UTF-8" ?>

Another diff btw is that orkut.com has a different json encoding on the \/\/ 
stuff, which probably makes preloading not work for us anyhow (since 'http://' 
!= 'http:\/\/'), however i can't see why we error out on the encoding=\"UTF-8\" 
?> part since that's identical between the 2:

Ours:
gadgets.io.preloaded_ = 
{"http:\/\/www.tarot.com\/rss\/generate.php?code=google-ig&feed=daily_horoscope&sign=__UP_sign__":{"body":"<?xml
 version=\"1.0\" encoding=\"UTF-8\" ?> ...etc

Orkut.com:
gadgets.io.preloaded_ = 
{"http://www.tarot.com/rss/generate.php?code=google-ig&feed=daily_horoscope&sign=Gemini":{"body":";<?xml
 version=\"1.0\" encoding=\"UTF-8\" ?> ... etc



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to