opengeospatial / ets-wms13

Repository for the Exectutable Test Suite for WMS 1.3.0
Apache License 2.0
2 stars 4 forks source link

OGC test gives "exceptions-default FAILED" in the test result for an INSPIRE View Service WMS #111

Closed robblis closed 3 months ago

robblis commented 3 months ago

Describe the bug While testing a valid INSPIRE View Service WMS exceptions-default test failures are encountered.

To Reproduce Steps to reproduce the behavior:

  1. Goto https://cite.opengeospatial.org/teamengine/viewSessions.jsp
  2. Create a new OGC_Web Map Service (WMS)_1.3.0 test session.
  3. Use the following service endpoint. https://agsinspire2.esri.com/server/services/A4I/EnergyResources/MapServer/WMSServer?request=GetCapabilities&service=WMS
  4. See errors: exceptions-default FAILED.

Expected behavior See exceptions-default test pass

Screenshots image

Additional context The test errror states: Validation error: cvc-elt.1.a: Cannot find the declaration of element 'ExceptionReport'.

Using the test URL... https://agsinspire2.esri.com/server/services/A4I/EnergyResources/MapServer/WMSServer?FoRmAt=image%2Fbmp&VeRsIoN=1.3.0&LaYeRs=NonExistant&CrS=CRS:84&BbOx=0,0,1,1&HeIgHt=100&ReQuEsT=GetMap&WiDtH=100&StYlEs=

The output is...

<ExceptionReport xmlns="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.2" xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<Exception code="LayerNotDefined" locator="LAYERS">
<ExceptionText>
<![CDATA[ Operation request contains an invalid parameter value. ]]>
</ExceptionText>
<ExceptionText>
<![CDATA[ Operation request contains an invalid parameter value. The layer [NonExistant] specified is invalid. ]]>
</ExceptionText>
</Exception>
</ExceptionReport>

The output owsExceptionReport.xsd clearly defines an ExceptionReport element.

So not sure why the failure.

dstenger commented 3 months ago

Thank you for reporting.

The test suite expects an exception report which can be validated against schema https://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd.

This requirement is described in chapter "E.2 Service Exception schema" of the specification (OGC 06-042).

Your service, however, returns a http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd.

robblis commented 3 months ago

Hi @dstenger, thanks for the clarification. Our service returns the ows exception to satisfy the INSPIRE View Service validator, but not necessarily what's required for the OGC validation. So, seems like no issue with regards to the OGC validator. Our standard WMS service seems to return the correct exception. I'll go ahead and close this issue.