[OpenLayers-Dev] WFSDescribeFeatureType request in 2.7-rc1 extra "?"

Eric Lemoine eric.c2c at gmail.com
Mon Sep 8 15:26:37 EDT 2008


Ticket is #1616. Cheers. Eric

2008/9/8, Eric Lemoine <eric.c2c at gmail.com>:
> Hi Alexandre.
>
> Yes, IIRC there already is a ticket for this, and a patch. If it
> worked in 2.6 and this is therefore a regression then change the
> ticket's milestone to 2.7 and we'll fix it during the RC cycle.
>
> In the mean time you may want to know that you can pass a params
> object in place of a params string to loadURL, with an object it
> should work as expected. I understand that you get the params string
> from the WFS object, but you may be able to be able to convert it back
> to an object using some method in Util (sorry i can't look this up for
> you right now).
>
> Eric
>
> 2008/9/8, Alexandre Dube <adube at mapgears.com>:
>> I tried an other request and got the same problem.  In Requests.js at
>> line 90, that's where it gets its extra "?"
>>
>> OpenLayers.loadURL(
>>     "/bdga/getLayersByType.php?mapfile="+szMapfile, '', this, setLayers);
>>
>> The request becomes :
>> .../bdga/getLayersByType.php?mapfile=/mypath/bdga.map?
>>
>> Alexandre
>>
>> Alexandre Dube wrote:
>>> Hi devs,
>>>
>>>   I noticed a new strange behavior with OpenLayers 2.7-rc1 using
>>> WFSDescribeFeatureType format.
>>>
>>>   Here's the request I'm using :
>>>         var sUrl =  olWFSRoads.getFullRequestString({
>>>             REQUEST: "DescribeFeatureType",
>>>             SERVICE: "WFS",
>>>             TYPENAME: "BDGA_ROUTE_L_ARC",
>>>             VERSION: "1.0.0"
>>>         });
>>>         OpenLayers.loadURL(sUrl, '', this, setRoadAttributes);
>>>
>>>   Here's the end of the URL in :
>>>   2.6 : &SRS=EPSG%3A32198&TYPENAME=BDGA_ROUTE_L_ARC
>>>   2.7 : &SRS=EPSG%3A32198&TYPENAME=BDGA_ROUTE_L_ARC?
>>>
>>>   With 2.7, I get the following error : Invalid typename
>>> (BDGA_ROUTE_L_ARC?).  There should not be a "?" at the end of the
>>> request.
>>>
>>>   Then, I realized that "typename" is already at the beginning of the
>>> request so I just quoted //TYPENAME: "BDGA_ROUTE_L_ARC", and it worked,
>>> but the "?" is still there ( at the end ) but it didn't affect
>>> anything.  I don't know if this extra "?" could appear elsewhere ( on
>>> other requests )
>>>
>>>  Should I open a ticket for this ?
>>>
>>>
>>
>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>>
>


More information about the Dev mailing list