Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1123

makeRequest not using preloaded data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1-BETA1
    • Component/s: PHP
    • Labels:
      None
    • Environment:
      shindig (PHP) trunk

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              chabotc Chris Chabot
              Reporter:
              madmatah Matthieu Huguet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: