|
Issue Type:
|
Bug
|
Affects Versions:
|
2.2.3
|
Assignee:
|
Andrea Aime
|
Components:
|
WFS
|
Created:
|
11/Jan/13 9:26 AM
|
Description:
|
If I send a WFS GetFeature request with a value of 0 (it was accidental!), I get back a GeoServer error in my exceptionText:
<ows:ExceptionText>java.lang.ArrayIndexOutOfBoundsException: 0
0</ows:ExceptionText>
(and there’s a corresponding console error):
11 Jan 15:17:31 ERROR [org.geoserver.ows] -
java.lang.ArrayIndexOutOfBoundsException: 0
at org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.buildSchemaInternal(FeatureTypeSchemaBuilder.java:244)
at org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.build(FeatureTypeSchemaBuilder.java:147)
at org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.build(FeatureTypeSchemaBuilder.java:135)
at org.geoserver.wfs.xml.ApplicationSchemaXSD2.buildSchema(ApplicationSchemaXSD2.java:69)
This implies that the input isn’t being properly sanitised.
As best I can tell trying to read the WFS 2.0.0 spec, exceptions for GetFeature should be either OperationParsingFailed or OperationProcessingFailed (the later in this case I guess).
|
Project:
|
GeoServer
|
Priority:
|
Major
|
Reporter:
|
Jonathan Moules
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa).
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)