You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running basic WFS 1.1 via the rest API tests I get a number of the following errors:
<starttestdefaultResult="1"file="/usr/local/tomcat/te_base/work/te_base_scripts_wfs_1.1.0_ctl_main-auto.ctl/ctl1$SchematronValidatingParser.test"local-name="SchematronValidatingParser"namespace-uri="http://www.occamlab.com/ctl" pat
h="s0001/d1e39011_1/d1e29142_1/d1e1500_1/d1e2864_1"prefix="ctl"type="Mandatory">
<assertion>Validate an XML instance against a Schematron schema using the given phase.</assertion>
<paramsxmlns:tems="java:com.occamlab.te.web.MonitorServlet"xmlns:myparsers="http://teamengine.sourceforge.net/parsers"xmlns:wfs="http://www.opengis.net/wfs"xmlns:parsers="http://www.occamlab.com/te/parsers"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:ows="http://www.opengis.net/ows"xmlns:saxon="http://saxon.sf.net/"xmlns:p="http://teamengine.sourceforge.net/parsers"xmlns:gen="java:com.occamlab.te.Generator"xmlns:te="http://www.occamlab.com/te" xmlns:s
f="http://cite.opengeospatial.org/gmlsf"xmlns:tec="java:com.occamlab.te.TECore"xmlns:ctl="http://www.occamlab.com/ctl"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:xlink="http://www.w3.org/1999/xlink">
<paramlocal-name="doc"namespace-uri=""prefix=""type="document-node(element({http://www.opengis.net/ows}ExceptionReport, xs:anyType))">
<value>
<ows:ExceptionReportxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.1.0"xsi:schemaLocation="http://www.opengis.net/ows http://geoserver:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:ExceptionexceptionCode="MissingParameterValue"locator="service">
<ows:ExceptionText>Could not determine service</ows:ExceptionText>
</ows:Exception>
<!--Response received in [530] milliseconds--></ows:ExceptionReport>
</value>
</param>
<paramlocal-name="schema"namespace-uri=""prefix=""type="document-node()">
<value>/sch/ows/1.0.0/ExceptionReport.sch</value>
</param>
<paramlocal-name="phase"namespace-uri=""prefix=""type="document-node()">
<value>MissingParameterValuePhase</value>
</param>
</params>
</starttest>
<messageid="d1e633_1">Total number of errors detected: 1</message>
<messageid="d1e639_1">Error 1: assertion failed:
The exception report must have @version = "1.2.0".
The reported version number is 1.1.0.
</message>
<endtestresult="6"/>
However, the same test run from the HTML UI works without problems.
To Reproduce
Steps to reproduce the behavior:
docker run -p 8004:8080 --rm ogccite/teamengine-production
Expected behavior
The tests should behave consistently, regardless of how they are executed.
Considerations
Grepping the ETS WFS 1.1 sources, the error message is not even found (not even part of it).
However, the production docker image has several test suites, so I suspected cross-test pollution and classpath lookups.
Regarding cross test pollution, I've found the error message in the same named, same path file in CSW 2.0.2 test suite...
But then I've tried to build a docker image with just ETS WFS 1.1, and the issue was still there.
Then found that for some reason, Teamengine itself has a "sch/ows/1.0.0/ExceptionReport.sch" with that error message:
When building, this file ends up in ``WEB-INF/classes".
So if the REST test were to use the classpath, then they would always pick up the file in teamegine/WEB-INF/classes rather than the one in the ets-wfs11 jar.
Funny enough, the file seems to have gotten in some 9 years ago as an attempt to address test suite failures, in a commit that involved CSW 2.0 changes: opengeospatial/teamengine@ad07d5a
The text was updated successfully, but these errors were encountered:
aaime
changed the title
WFS test failure only when running REST tests against production
WFS test failure only when running REST tests against production docker image
Dec 26, 2024
Describe the bug
Running basic WFS 1.1 via the rest API tests I get a number of the following errors:
However, the same test run from the HTML UI works without problems.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The tests should behave consistently, regardless of how they are executed.
Considerations
Grepping the ETS WFS 1.1 sources, the error message is not even found (not even part of it).
However, the production docker image has several test suites, so I suspected cross-test pollution and classpath lookups.
Regarding cross test pollution, I've found the error message in the same named, same path file in CSW 2.0.2 test suite...
But then I've tried to build a docker image with just ETS WFS 1.1, and the issue was still there.
Then found that for some reason, Teamengine itself has a "sch/ows/1.0.0/ExceptionReport.sch" with that error message:
https://github.com/opengeospatial/teamengine/blob/master/teamengine-web/src/main/resources/sch/ows/1.0.0/ExceptionReport.sch#L52
When building, this file ends up in ``WEB-INF/classes".
So if the REST test were to use the classpath, then they would always pick up the file in
teamegine/WEB-INF/classes
rather than the one in the ets-wfs11 jar.Funny enough, the file seems to have gotten in some 9 years ago as an attempt to address test suite failures, in a commit that involved CSW 2.0 changes: opengeospatial/teamengine@ad07d5a
The text was updated successfully, but these errors were encountered: