[CITE-Forum] WPS 1.0.0 r1 tests

Benjamin Proß b.pross at 52north.org
Tue Apr 23 11:07:33 EDT 2013


List,

While testing our WPS 1.0.0 implementation, we came across the following 
(possible) issue:

The ExceptionReport responses of our WPS contain more than one Exception 
element and therefore also more than one exceptionCode attribute.
We think, this is correct based on Table 57 in OGC 05-007r7 and section 
8.2 in OGC 06-121r3.
The test now seems to concatenate the exceptionCodes and then fails 
because this doesn't match the expected code, e.g. "MissingParameterValue".
Shouldn't it be tested, whether the concatenation /contains /the 
expected exceptionCode instead?
Please find attached a test log of the OWS.GetCapabilities-Exceptions.1 
test. This issue would affect several more tests, though.

Cheers,

Benjamin

-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: b.pross at 52north.org
Fon: +49-(0)-251--396371-42
Fax: +49-(0)-251--396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20130423/cf8feab9/attachment.htm>
-------------- next part --------------
Log for test s0002/d1445e137_1/d1445e212_1/d719e54_1/d719e263_1

Test owsTests:ows-OWS.GetCapabilities-Exceptions.1 type Mandatory default result Passed (s0002/d1445e137_1/d1445e212_1/d719e54_1/d719e263_1)

Assertion: In the event that a GetCapabilities request cannot be processed for any reason, the response entity shall include an exception report. The exception code must be one of those listed in Table 5.

Message d719e1209_1:
   GetCapabilities with no service parameter.  Pass if all of the following conditions are true: (1) the response is schema valid; (2) the root document is an ows:ExceptionReport document; (3) the ExceptionReport shall have the "MissingParameterValue" exception code; (4) theExceptionReport @locator value shall be that of the missing parameter.

Message d719e1211_1:
   Version parameter: 1.0.0

Request d719e1215_1:
   Method: get
   URL: http://localhost:8080/wps/WebProcessingService?version=1.0.0&request=GetCapabilities
   Response from parser parsers:XMLValidatingParser:
      <ns:ExceptionReport xmlns:ns="http://www.opengis.net/ows/1.1" version="1.0.0">
   <ns:Exception exceptionCode="MissingParameterValue" locator="service">
      <ns:ExceptionText>Parameter <service> is not specified</ns:ExceptionText>
   </ns:Exception>
   <ns:Exception exceptionCode="JAVA_StackTrace">
      <ns:ExceptionText>org.n52.wps.server.request.Request.getMapValue:109
org.n52.wps.server.request.Request.getMapValue:137
org.n52.wps.server.request.CapabilitiesRequest.validate:113
org.n52.wps.server.request.CapabilitiesRequest.call:135
org.n52.wps.server.handler.RequestHandler.handle:333
org.n52.wps.server.WebProcessingService.doGet:229
javax.servlet.http.HttpServlet.service:621
org.n52.wps.server.WebProcessingService.service:323
javax.servlet.http.HttpServlet.service:728
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter:305
org.apache.catalina.core.ApplicationFilterChain.doFilter:210
org.apache.catalina.core.StandardWrapperValve.invoke:222
org.apache.catalina.core.StandardContextValve.invoke:123
org.apache.catalina.authenticator.AuthenticatorBase.invoke:472
org.apache.catalina.core.StandardHostValve.invoke:171
org.apache.catalina.valves.ErrorReportValve.invoke:99
org.apache.catalina.valves.AccessLogValve.invoke:936
org.apache.catalina.core.StandardEngineValve.invoke:118
org.apache.catalina.connector.CoyoteAdapter.service:407
org.apache.coyote.http11.AbstractHttp11Processor.process:1004
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process:589
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run:312
java.util.concurrent.ThreadPoolExecutor.runWorker:-1
java.util.concurrent.ThreadPoolExecutor$Worker.run:-1
java.lang.Thread.run:-1
</ns:ExceptionText>
   </ns:Exception>
   <ns:Exception exceptionCode="JAVA_RootCause"/>
   <!--Response received in [2320] milliseconds--></ns:ExceptionReport>

Message d719e1280_1:
   FAILURE: The returned exception report was expected to contain an exceptionCode of "MissingParameterValue" and a locator value of "service".

Message d719e1283_1:
   Returned exception code was: "MissingParameterValue JAVA_StackTrace JAVA_RootCause"

Message d719e1285_1:
   Returned locator was: "service"

Result: Failed



More information about the CITE-Forum mailing list