[OpenLayers-Trac] [OpenLayers] #3486: Script protocol problem with Twitter search API

OpenLayers trac-20090302 at openlayers.org
Mon Sep 5 03:43:07 EDT 2011


#3486: Script protocol problem with Twitter search API
----------------------------+-----------------------------------------------
 Reporter:  jacarma         |       Owner:  fredj       
     Type:  bug             |      Status:  new         
 Priority:  minor           |   Milestone:  2.12 Release
Component:  Protocol        |     Version:  2.11 RC3    
 Keywords:  twitter, jsonp  |       State:  Review      
----------------------------+-----------------------------------------------
 Demo: [https://correo.prodevelop.es/descarga/jacarma/twitter_bug.html]

 Script protocol requests URLs with brackets in it like the following:

 http://search.twitter.com/search.json?geocode=0%2C0%2C156.899568km&callback=OpenLayers.Protocol.Script.registry%5B1%5D

 %5B = [

 %5D = ]

 The content of the Twitter response starts like this:

 {{{
 OpenLayers.Protocol.Script.registry([1]({"completed_in":0.191,"ma ...
 }}}

 So the callback function never gets called.

 The patch provided removes the brackets from the request and works with
 Twitter (and probably most services).

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3486>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list