app-schema gives error response to WFS 2 GetFeatureById stored query

Description

If I install GeoServer and then set the data directory to be the tutorial data that comes with the app-schema plugin and execute the query below:

http://localhost:8080/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&storedquery_id=urn:ogc:def:query:OGC-WFS::GetFeatureById&id=mf.25699& - http://localhost:8080/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&storedquery_id=urn:ogc:def:query:OGC-WFS::GetFeatureById&id=mf.25699&

I get the error response:

<ows:ExceptionReport version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd - http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd"><ows:Exception exceptionCode="OperationProcessingFailed" locator="GetFeature"><ows:ExceptionText>No feature types specified</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

With a stored query, it shouldn't be necessary to specify a feature type.

Note the core GeoServer WFS partly supports this query although the response isn't quite the correct format: see https://jira.codehaus.org/browse/GEOS-6232 - https://jira.codehaus.org/browse/GEOS-6232

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low
Configure