Jeroen,
I emptied the database and reimport the test data followed your instruction.
Now I get 26 failed tests. I try to paste some of them, you may see what
went wrong.
Thanks for your help,
Hoan-Vu Tran-Ho
Test ctl:SchematronValidatingParser
(s0003/d1e6546_1/d1e6413_1/d1e1292_1/d1e1505_1)
Assertion: Validate an XML instance against a Schematron schema using the
given phase.
Message d1e177_1:
Total number of errors detected: 1
Message d1e183_1:
Error 1: Line 0 - assertion failed:
The document element must have [local name] = "DescribeRecordResponse" and
[namespace name] = "http://www.opengis.net/cat/csw/2.0.2"\.
The included document element has [local name] = ExceptionReport and
[namespace name] = http://www.opengis.net/ows.
Result: Failed
-----------------------------------
Test ctl:SchematronValidatingParser
(s0003/d1e6546_1/d1e6423_1/d1e2650_1/d1e3476_1)
Assertion: Validate an XML instance against a Schematron schema using the
given phase.
Message d1e177_1:
Total number of errors detected: 1
Message d1e183_1:
Error 1: Line 0 - assertion failed:
The document element must have [local name] = "GetRecordsResponse" and
[namespace name] = "http://www.opengis.net/cat/csw/2.0.2"\.
The included document element has [local name] = ExceptionReport and
[namespace name] = http://www.opengis.net/ows.
Result: Failed
-----------------------------------
Request d1e2025_1:
Method: GET
URL:
http://<host>/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:ce8627a0-685c-11db-bd13-0800200c9a66,urn:uuid:e9330592-0932-474b-be34-c3a3bb67c7db
Response from parser p:XMLValidatingParser.CSW:
<csw:GetRecordByIdResponse
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"/>
Message d1e2067_1:
[FAILURE] Expected one record in response.
Result: Failed
-------------------------------------
Test csw:csw-2.0.2-GetRecords-tc4.1 (s0003/d1e6546_1/d1e6423_1/d1e2640_1)
Assertion:
The response to a GetRecords request that specifies sorting criteria
must include the corresponding record representations in the correct
sort order.
Request d1e3113_1:
Method: POST
URL: http://<host>/geonetwork/srv/en/csw
Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:ows="http://www.opengis.net/ows"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
resultType="results"
service="CSW"
version="2.0.2">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>brief</csw:ElementSetName>
<ogc:SortBy>
<ogc:SortProperty>
<ogc:PropertyName>dc:identifier</ogc:PropertyName>
<ogc:SortOrder>ASC</ogc:SortOrder>
</ogc:SortProperty>
</ogc:SortBy>
</csw:Query>
</csw:GetRecords>
.....
Message d1e3191_1:
[FAILURE] Search results are not sorted correctly by dc:identifier in
ascending order.
Result: Failed
---------------------------------
Message d1e3380_1:
[FAILURE] Search results are not sorted correctly by dc:date in
descending order.
Message d1e3383_1:
, ,
Result: Failed
----------------------------------
Test ctl:SchematronValidatingParser
(s0003/d1e6546_1/d1e6423_1/d1e2691_1/d1e4252_1)
Assertion: Validate an XML instance against a Schematron schema using the
given phase.
Message d1e177_1:
Total number of errors detected: 1
Message d1e183_1:
Error 1: Line 20 - assertion failed:
csw:SearchResults/@numberOfRecordsMatched must be greater than zero.
Result: Failed
----------------------------------
Test csw:csw-2.0.2-GetRecords-tc11.2 (s0003/d1e6546_1/d1e6423_1/d1e2702_1)
Assertion:
The response to a GetRecords request that includes an ogc:Filter
having a
PropertyIsLike predicate must include matching record representations.
Request d1e4404_1:
Method: POST
URL: http://<host>/geonetwork/srv/en/csw
Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:ows="http://www.opengis.net/ows"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
resultType="results"
service="CSW"
version="2.0.2">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*">
<ogc:PropertyName>dc:date</ogc:PropertyName>
<ogc:Literal>200?-10-*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Response from parser p:XMLValidatingParser.CSW:
<csw:GetRecordsResponse
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">
<csw:SearchStatus timestamp="2010-04-09T17:22:14"/>
<csw:SearchResults elementSet="full" nextRecord="0"
numberOfRecordsMatched="0"
numberOfRecordsReturned="0"/>
</csw:GetRecordsResponse>
Message d1e4459_1:
[FAILURE] AT least one csw:Record element expected in response.
Result: Failed
-------------------------------
Test csw:csw-2.0.2-GetRecords-tc17.2 (s0003/d1e6546_1/d1e6423_1/d1e2748_1)
Assertion:
The response to a GetRecords request that includes an ogc:Filter
having
the And logical predicate must include only matching record
representations.
Request d1e5460_1:
Method: POST
URL: http://<host>/geonetwork/srv/en/csw
Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:ows="http://www.opengis.net/ows"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
resultType="results"
service="CSW"
version="2.0.2">
<csw:Query typeNames="csw:Record">
<csw:ElementName>dc:identifier</csw:ElementName>
<csw:ElementName>dc:date</csw:ElementName>
<csw:ElementName>ows:BoundingBox</csw:ElementName>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>ows:BoundingBox</ogc:PropertyName>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11:4326">
<gml:lowerCorner>47.0 -4.5</gml:lowerCorner>
<gml:upperCorner>52.0 1.0</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>dc:date</ogc:PropertyName>
<ogc:Literal>2006-01-01Z</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:And>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Response from parser p:XMLValidatingParser.CSW:
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>Raised exception while searching metadata :
org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx:
code=NoApplicableCode, locator=null, message=Error when parsing spatial
filter (version: 1.1.0):<ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"&gt;&\#xD;
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>ows:BoundingBox</ogc:PropertyName>
<gml:Envelope xmlns:gml="http://www.opengis.net/gml"
srsName="urn:x-ogc:def:crs:EPSG:6.11:4326">
<gml:lowerCorner>47.0 -4.5</gml:lowerCorner>
<gml:upperCorner>52.0 1.0</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>dc:date</ogc:PropertyName>
<ogc:Literal>2006-01-01Z</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:And>
</ogc:Filter>. Error is: java.lang.RuntimeException: Parsing failed
for Envelope: java.lang.RuntimeException: Could not create crs:
urn:x-ogc:def:crs:EPSG:6.11:4326</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Message d1e5541_1:
[FAILURE] 1-10 csw:Record elements expected in response (0 included)
Result: Failed
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4879805.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.