[Fdo-trac] [fdo-trac] #903: WFS fail to connect to http://demo.opengeo.org/geoserver/wfs?service=wfs
FDO
trac_fdo at osgeo.org
Thu Feb 5 19:58:39 PST 2015
#903: WFS fail to connect to http://demo.opengeo.org/geoserver/wfs?service=wfs
----------------------------+-----------------------------------------------
Reporter: christinebao | Owner: Christine Bao
Type: defect | Status: new
Priority: major | Milestone: 3.9.0
Component: WFS Provider | Version: 3.9.0
Severity: 3 | Keywords:
External_id: DE20287 |
----------------------------+-----------------------------------------------
Comment(by christinebao):
This defect is caused by the WFS URL contains "service=wfs" already.
Previously FDO WFS provider always add
version=<version>&service=WFS&REQUEST=GetCapabilities to request, so make
it:
{{{
http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.0.0&service=WFS&REQUEST=GetCapabilities
}}}
and this URL returns error:
{{{
<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001
/XMLSchema-instance" version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://demo.opengeo.org:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="InvalidParameterValue" locator="service">
<ows:ExceptionText>
Single value expected for request parameter service but instead found:
[wfs, WFS]
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
}}}
Fix is to compare URL, if it already contains "service=WFS" (case
insensitive), FDO WFS provider not add duplicate parameter again.
The same problem also happen when do DescribeFeatureType and GetFeature,
as this WFS's url contains "request=..." already.
{{{
http://demo.opengeo.org:80/geoserver/wfs?request=DescribeFeatureType
http://demo.opengeo.org:80/geoserver/wfs?request=GetFeature
}}}
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/903#comment:3>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list