WFS ListStoredQueries and DescribeStoredQueries do not contain all prefix decalarations

Description

I have upgraded Geoserver to v.2.14 master, because of this bug:

https://osgeo-org.atlassian.net/browse/GEOS-8635

So the GML errors were corrected but this leads me to another problem. I have application schema worskpace "gn" for geographical names. So the capabilites request:

http://myserver/geoserver/gn/wfs?service=WFS&version=2.0.0&request=getcapabilities

has declared prefix gn:

xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0"

But describestoredqueries

http://myserver/geoserver/gn/wfs?service=WFS&version=2.0.0&request=describestoredqueries&STOREDQUERY_ID=http://inspire.ec.europa.eu/operation/download/GetSpatialDataset

does not, so I get an error from INSPIRE validator:

org.xml.sax.SAXException: Fatal error: org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 151; UndeclaredPrefix: Cannot resolve 'gn:NamedPlace' as a QName: the prefix 'gn' is not declared. Response did not validate against schema 'http://www.opengis.net/wfs/2.0 http://myserver:80/geoserver/schemas/wfs/2.0/wfs.xsd'.

As I have noticed that gn prefix is missing after CreateStoredQuery POST, i added it manually in data_dir/wfs/query/querydefinition.xml, but the result is the same. XML header does not contain gn prefix. Am I missing something here or this could possibly be a Bug?

Shouldn't WFS DescribeStoredQueries inherit the same namespace daclarations as WFS Getcapabilities?

Best regards
Davor

Environment

None

Assignee

Unassigned

Reporter

Davor Racic

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure