You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Chris Chabot (JIRA)" <ji...@apache.org> on 2008/06/28 15:45:45 UTC

[jira] Created: (SHINDIG-411) Preloader erroring out on Daily Horoscopes gadget & other weirdness

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.


[jira] Commented: (SHINDIG-411) Preloader erroring out on Daily Horoscopes gadget & other weirdness

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609043#action_12609043 ] 

Kevin Brown commented on SHINDIG-411:
-------------------------------------

In javascript, http:// actually *is* === http:\/\/. 

Run this in firebug to see:

var obj = {"http:\/\/example.org\/whatisit":"Is a cool site"}; console.debug(obj["http://example.org/whatisit"])

> 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.


[jira] Resolved: (SHINDIG-411) Preloader erroring out on Daily Horoscopes gadget & other weirdness

Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Chabot resolved SHINDIG-411.
----------------------------------

    Resolution: Fixed
      Assignee: Chris Chabot

All these issues have been resolved with the latest commit.


> 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
>            Assignee: 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.