[Geoserver-devel] [jira] Created: (GEOS-1893) Required param missing in GetFeature, funny error back

Required param missing in GetFeature, funny error back
------------------------------------------------------

                 Key: GEOS-1893
                 URL: http://jira.codehaus.org/browse/GEOS-1893
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 1.6.3
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.6.4

This morning, with my head half in bed still, I made the following wfs request

http://sigma.openplans.org:8080/geoserver/wfs?request=GetFeature&featureType=topp:zipcodes3&service=WFS&version=1.1.0

as you can see, I used featureType instead of typeName. Here is the response:

{code}
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows http://sigma.openplans.org:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:ows="http://www.opengis.net/ows&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>No query specified</ows:ExceptionText>
    <ows:ExceptionText>Details:</ows:ExceptionText>
    <ows:ExceptionText>org.geoserver.wfs.WFSException: No
      query specified at
      org.geoserver.wfs.GetFeature.run(GetFeature.java:115)
      at
      org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:108)
      at
      sun.reflect.GeneratedMethodAccessor551.invoke(Unknown
{code}

Eeek, isn't typeName a mandatory parameter? Why am I getting the funny error message about a missing query then? :wink:

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira