You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Chris Chabot (JIRA)" <ji...@apache.org> on 2009/07/22 01:41:14 UTC
[jira] Resolved: (SHINDIG-1123) makeRequest not using preloaded
data
[ https://issues.apache.org/jira/browse/SHINDIG-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Chabot resolved SHINDIG-1123.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.1-BETA1
Assignee: Chris Chabot
Turns out the format for the preload injection had changed. Fix has been committed to svn
> makeRequest not using preloaded data
> ------------------------------------
>
> Key: SHINDIG-1123
> URL: https://issues.apache.org/jira/browse/SHINDIG-1123
> Project: Shindig
> Issue Type: Bug
> Components: PHP
> Environment: shindig (PHP) trunk
> Reporter: Matthieu Huguet
> Assignee: Chris Chabot
> Fix For: 1.1-BETA1
>
>
> Hi,
> It seems that makeRequest is not using preloaded data : request are executed 2 times !
> Here is simple a test gadget (it preloads a page and call makeRequest to load the same page).
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
> <ModulePrefs title="Preload test">
> <Preload href="http://social-app-tutorial.appspot.com/static/hello.html"
> views="home" />
> </ModulePrefs>
> <Content view="home" type="html">
> <![CDATA[
> <script type="text/javascript">
> var params = {};
> gadgets.io.makeRequest('http://social-app-tutorial.appspot.com/static/hello.html', function(r){}, params);
> </script>
> ]]>
> </Content>
> </Module>
> To reproduce :
> 1) Put some debug in your BasicRemoteContentFetcher::fetchRequest() and BasicRemoteContentFetcher::multiFetchRequest()
> 2) Empty your shindig cache
> [ http://social-app-tutorial.appspot.com/static/hello.html is cached 10 minutes (See expires/cache-control headers) ]
> 3) Render the gadget
> Result :
> [2009-07-21T15:08:15+00:00] [DEBUG] [default]: multiFetchRequest : http://social-app-tutorial.appspot.com/static/hello.html
> [2009-07-21T15:08:15+00:00] [DEBUG] [default]: fetchRequest : http://social-app-tutorial.appspot.com/static/hello.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.