[OpenLayers-Users] GetFeatureInfo requests never get answers

Tim Schaub noreply at geocartic.com
Tue Jul 24 19:01:49 EDT 2007


Hey Marc-

Glad you figured this out.  Guess I should have put the same, protocol, 
*same port*, and same host part in bold.

Hope others searching stumble across this sooner.

 > Since you are making an asynchronous request for the GetFeatureInfo
 > results, you are subject to the same origin policies that browsers 
enforce.
 >
 > This means that your GetFeatureInfo request won't go anywhere unless it
 > is requested with the same protocol, from the same port, and on the same
 > host as the request that initiated your application (see [1]).
 >

Marc Desharnais wrote:
> Hi Christopher,
> 
> Like you said, it turned out that the problem was a security issue.
> To those who don't know (like me), you can't access a host with your 
> browser and make query on another. The point I was missing was that the 
> same machine with 2 different ports are considered to be 2 different 
> hosts. It's a simple explanation when you realize that.
> 
> I learned too why the security exception in Firefox while I attempted to 
> make request (via Firebug) didn't show like I would have expect.
> That's a thing that really bothered me at the first place because I 
> would have expected an clear error from the browser.
> I have read that this kind of exception are treated silently in the 
> browser so it's normal I've seen nothing while I was debugging.
> 
> Now everything is working well!
> 
> Thank you for your supportt! :)
> 
> Marc
> 
> 
> Christopher Schmidt wrote:
>> On Thu, Jul 19, 2007 at 01:04:34PM +0000, Marc Desharnais wrote:
>>   
>>> Hi,
>>>
>>> I confirm that my geoserver is working fine. I exchanged some emails on 
>>> the geoserver mailing list and they suggested me to try the preview maps 
>>> given by geoserver. They now integer the getfeatureinfo functionality in 
>>> the default previews.
>>>
>>> So I tried there and everything worked fine.
>>>
>>> but, now, if I copy the html code entirely without any modification into 
>>> my webpage, I won't work. The map displays fine and everything. But it 
>>> hangs on the loading message and never get response. I used Firebug to 
>>> track the bug and I remarked that the request is never noticed in 
>>> firebug when I click on a point. The loadURL function is called but not 
>>> the setHTML. It makes me think that maybe it's a permission problem. 
>>> Since it semms to work from geoserver itself but not from apache (which 
>>> my web page is on).
>>>     
>>
>> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost
>>
>> Regards,
>>   
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list