[GeoNetwork-devel] OGC Compliance Test failed (CSW 2.0.2)

Hi,

we are in the process of preparing for serving our metadata records using
geonetwork server's CSW interface. Metadata imports and first tests went
good. The only problem we have now is that the OGC Compliance Test (CSW
2.0.2) which consists of 102 test requests. The result is: 65 passed, 1
warning and 36 failed. We are using the branch 2.4.x. I tried yesterday with
the trunk: exact same test result. Does anyone know about this? I appreciate
any help.

Hoan-Vu Tran-Ho.
gcmd.gsfc.nasa.gov
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4877710.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Hoan-Vu,
Could you provide more details on exactly where the test fails? Did you take care of properly configuring GeoNetwork so all required information is available in the system to properly operate?
Kind regards,
Jeroen

On 9 apr 2010, at 17:24, hvtranho wrote:

Hi,

we are in the process of preparing for serving our metadata records using
geonetwork server's CSW interface. Metadata imports and first tests went
good. The only problem we have now is that the OGC Compliance Test (CSW
2.0.2) which consists of 102 test requests. The result is: 65 passed, 1
warning and 36 failed. We are using the branch 2.4.x. I tried yesterday with
the trunk: exact same test result. Does anyone know about this? I appreciate
any help.

Hoan-Vu Tran-Ho.
gcmd.gsfc.nasa.gov
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4877710.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Jeroen,

thanks for the fast response. I looked through the test result and saw that
they (the failed ones) are all about the CSW 2.0.2 protocol. For example
this:

Request d1e6637_1:
   Method: GET
   URL:
http://<host>/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63
   Response from parser p:XMLValidatingParser.CSW:
      
   Messages from parser p:XMLValidatingParser.CSW:
        Validation error:
  cvc-complex-type.2.4.a: Invalid content was found starting with element
'simpledc'. One of '{"http://www.opengis.net/cat/csw/2.0.2&quot;:AbstractRecord,
WC[##other:"http://www.opengis.net/cat/csw/2.0.2&quot;\]}' is expected.
1 validation error detected.

Message d1e6678_1:
   
                  [FAILURE] The GetRecordByIdResponse entity does NOT
include only one matching item from the test data set (id =
urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63).
                  
Result: Failed

Or like this:

Request d1e1992_1:
   Method: POST
   URL: http://128.183.164.19:80/geonetwork/srv/en/csw
   Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                resultType="results"
                service="CSW"
                version="2.0.2">
   <csw:Query typeNames="csw:Record">
      <csw:ElementSetName>brief</csw:ElementSetName>
   </csw:Query>
</csw:GetRecords>
   Response from parser p:XMLValidatingParser.CSW:
      <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                     version="1.0.0"
                     xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
      <ows:ExceptionText>Raised exception while getting metadata
:java.lang.IllegalStateException: Root element not set</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Request d1e2025_1:
   Method: GET
   URL:
http://128.183.164.19:80/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:ce8627a0-685c-11db-bd13-0800200c9a66,
   Response from parser p:XMLValidatingParser.CSW:
      <csw:GetRecordByIdResponse
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;/&gt;

Message d1e2067_1:
   
                  [FAILURE] Expected one record in response.
                  
Result: Failed

May be more to the setup: Database contains only the 12 test records from
OGC. I think the setup is right because everything else works...

Thanks,

Hoan-Vu Tran-Ho
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4878579.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Jeroen,

thanks for the fast response. I looked through the test result and saw that
they (the failed ones) are all about the CSW 2.0.2 protocol. For example
this:

Request d1e6637_1:
   Method: GET
   URL:
http://<host>/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63
   Response from parser p:XMLValidatingParser.CSW:
     
   Messages from parser p:XMLValidatingParser.CSW:
        Validation error:
  cvc-complex-type.2.4.a: Invalid content was found starting with element
'simpledc'. One of '{"http://www.opengis.net/cat/csw/2.0.2&quot;:AbstractRecord,
WC[##other:"http://www.opengis.net/cat/csw/2.0.2&quot;\]}' is expected.
1 validation error detected.

Message d1e6678_1:
   
                  [FAILURE] The GetRecordByIdResponse entity does NOT
include only one matching item from the test data set (id =
urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63).
                 
Result: Failed

Or like this:

Request d1e1992_1:
   Method: POST
   URL: http://<HOST>/geonetwork/srv/en/csw
   Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                resultType="results"
                service="CSW"
                version="2.0.2">
   <csw:Query typeNames="csw:Record">
      <csw:ElementSetName>brief</csw:ElementSetName>
   </csw:Query>
</csw:GetRecords>
   Response from parser p:XMLValidatingParser.CSW:
      <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                     version="1.0.0"
                     xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
      <ows:ExceptionText>Raised exception while getting metadata
:java.lang.IllegalStateException: Root element not set</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

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,
   Response from parser p:XMLValidatingParser.CSW:
      <csw:GetRecordByIdResponse
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;/&gt;

Message d1e2067_1:
   
                  [FAILURE] Expected one record in response.
                 
Result: Failed

May be more to the setup: Database contains only the 12 test records from
OGC. I think the setup is right because everything else works...

Thanks,

Hoan-Vu Tran-Ho
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4878807.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

You will have to make sure that during import of the 12 records, the UUID's are not replaced with new UUID's. Also make sure you import while applying the stylesheet Convert_CSW-CITE_test_metadata .
Good luck,
Jeroen

On 9 apr 2010, at 20:36, hvtranho wrote:

Jeroen,

thanks for the fast response. I looked through the test result and saw that
they (the failed ones) are all about the CSW 2.0.2 protocol. For example
this:

Request d1e6637_1:
  Method: GET
  URL:
http://<host>/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63
  Response from parser p:XMLValidatingParser.CSW:

  Messages from parser p:XMLValidatingParser.CSW:
       Validation error:
cvc-complex-type.2.4.a: Invalid content was found starting with element
'simpledc'. One of '{"http://www.opengis.net/cat/csw/2.0.2&quot;:AbstractRecord,
WC[##other:"http://www.opengis.net/cat/csw/2.0.2&quot;\]}' is expected.
1 validation error detected.

Message d1e6678_1:

                 [FAILURE] The GetRecordByIdResponse entity does NOT
include only one matching item from the test data set (id =
urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63).

Result: Failed

Or like this:

Request d1e1992_1:
  Method: POST
  URL: http://<HOST>/geonetwork/srv/en/csw
  Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
               xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
               xmlns:ctl="http://www.occamlab.com/ctl&quot;
               xmlns:dc="DCMI: DCMI Metadata Terms;
               xmlns:dct="DCMI: DCMI Metadata Terms;
               xmlns:ows="http://www.opengis.net/ows&quot;
               xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
               xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
               xmlns:saxon="http://saxon.sf.net/&quot;
               xmlns:te="http://www.occamlab.com/te&quot;
               xmlns:tec="java:com.occamlab.te.TECore"
               xmlns:xi="http://www.w3.org/2001/XInclude&quot;
               xmlns:xlink="http://www.w3.org/1999/xlink&quot;
               xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
               xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
               resultType="results"
               service="CSW"
               version="2.0.2">
  <csw:Query typeNames="csw:Record">
     <csw:ElementSetName>brief</csw:ElementSetName>
  </csw:Query>
</csw:GetRecords>
  Response from parser p:XMLValidatingParser.CSW:
     <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                    version="1.0.0"
                    xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
<ows:Exception exceptionCode="NoApplicableCode">
     <ows:ExceptionText>Raised exception while getting metadata
:java.lang.IllegalStateException: Root element not set</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

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,
  Response from parser p:XMLValidatingParser.CSW:
     <csw:GetRecordByIdResponse
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;/&gt;

Message d1e2067_1:

                 [FAILURE] Expected one record in response.

Result: Failed

May be more to the setup: Database contains only the 12 test records from
OGC. I think the setup is right because everything else works...

Thanks,

Hoan-Vu Tran-Ho
--
View this message in context: http://n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p4878807.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Jeroen,

I deleted all records and import the test data again followed your
instruction. The number of failed tests is now 26. I tried to paste some of
them, hope you can see what went wrong. Thanks a lot.

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&quot;\.
  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&quot;\.
  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://128.183.164.19:80/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&quot;/&gt;

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://128.183.164.19:80/geonetwork/srv/en/csw
   Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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://128.183.164.19:80/geonetwork/srv/en/csw
   Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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&quot;
                       
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                       
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <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://128.183.164.19:80/geonetwork/srv/en/csw
   Body:
<csw:GetRecords xmlns="http://www.occamlab.com/ctl&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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&quot;
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                     version="1.0.0"
                     xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <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):&lt;ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&amp;gt;&amp;\#xD;
  &lt;ogc:And&gt;&#xD;
    &lt;ogc:BBOX&gt;&#xD;
      &lt;ogc:PropertyName&gt;ows:BoundingBox&lt;/ogc:PropertyName&gt;&#xD;
      &lt;gml:Envelope xmlns:gml="http://www.opengis.net/gml&quot;
srsName="urn:x-ogc:def:crs:EPSG:6.11:4326"&gt;&#xD;
        &lt;gml:lowerCorner&gt;47.0 -4.5&lt;/gml:lowerCorner&gt;&#xD;
        &lt;gml:upperCorner&gt;52.0 1.0&lt;/gml:upperCorner&gt;&#xD;
      &lt;/gml:Envelope&gt;&#xD;
    &lt;/ogc:BBOX&gt;&#xD;
    &lt;ogc:PropertyIsGreaterThan&gt;&#xD;
      &lt;ogc:PropertyName&gt;dc:date&lt;/ogc:PropertyName&gt;&#xD;
      &lt;ogc:Literal&gt;2006-01-01Z&lt;/ogc:Literal&gt;&#xD;
    &lt;/ogc:PropertyIsGreaterThan&gt;&#xD;
  &lt;/ogc:And&gt;&#xD;
&lt;/ogc:Filter&gt;. 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-tp4877710p4879787.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

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&quot;\.
  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&quot;\.
  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&quot;/&gt;

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&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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&quot;
                       
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                       
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <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&quot;
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
                xmlns:ctl="http://www.occamlab.com/ctl&quot;
                xmlns:dc="http://purl.org/dc/elements/1.1/&quot;
                xmlns:dct="http://purl.org/dc/terms/&quot;
                xmlns:gml="http://www.opengis.net/gml&quot;
                xmlns:ogc="http://www.opengis.net/ogc&quot;
                xmlns:ows="http://www.opengis.net/ows&quot;
                xmlns:p="http://teamengine.sourceforge.net/parsers&quot;
                xmlns:parsers="http://www.occamlab.com/te/parsers&quot;
                xmlns:saxon="http://saxon.sf.net/&quot;
                xmlns:te="http://www.occamlab.com/te&quot;
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:xi="http://www.w3.org/2001/XInclude&quot;
                xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
                xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
                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&quot;
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                     version="1.0.0"
                     xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <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):&lt;ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&amp;gt;&amp;\#xD;
  &lt;ogc:And&gt;&#xD;
    &lt;ogc:BBOX&gt;&#xD;
      &lt;ogc:PropertyName&gt;ows:BoundingBox&lt;/ogc:PropertyName&gt;&#xD;
      &lt;gml:Envelope xmlns:gml="http://www.opengis.net/gml&quot;
srsName="urn:x-ogc:def:crs:EPSG:6.11:4326"&gt;&#xD;
        &lt;gml:lowerCorner&gt;47.0 -4.5&lt;/gml:lowerCorner&gt;&#xD;
        &lt;gml:upperCorner&gt;52.0 1.0&lt;/gml:upperCorner&gt;&#xD;
      &lt;/gml:Envelope&gt;&#xD;
    &lt;/ogc:BBOX&gt;&#xD;
    &lt;ogc:PropertyIsGreaterThan&gt;&#xD;
      &lt;ogc:PropertyName&gt;dc:date&lt;/ogc:PropertyName&gt;&#xD;
      &lt;ogc:Literal&gt;2006-01-01Z&lt;/ogc:Literal&gt;&#xD;
    &lt;/ogc:PropertyIsGreaterThan&gt;&#xD;
  &lt;/ogc:And&gt;&#xD;
&lt;/ogc:Filter&gt;. 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.

Hi,

I am using the geonetwork software from the svn branch 2.4.x and the same
test engine you used. I still try to find solution for the failed tests.
Currently I have 22 failed.

Best Regards,
Hoan-Vu Tran-Ho.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/OGC-Compliance-Test-failed-CSW-2-0-2-tp4877710p5042166.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.