Ticket #3086 (closed defect: wontfix)

Opened 4 years ago

Last modified 2 years ago

wcs 1.1.1 GetCapabilities response does not contain the schemaLocation

Reported by: nsavard Owned by: tomkralidis
Priority: normal Milestone: 6.0 release
Component: WCS Server Version: 5.4
Severity: normal Keywords: ogc,cite,test,wcs,1.1.1
Cc: tomkralidis, assefa, warmerdam

Description

When a GetCapabilities? is issue to a WCS 1.1.1 server, the response does not validate because there is no schemaLocation attribute in the XML.

The request is:  http://dev1.lan.mapgears.com/manwe/cgi-bin/mswcs111_ogc_cite?service=WCS&request=GetCapabilities&version=1.1.1

The OGC CITE test engine is:  http://cite.opengeospatial.org/te2/

Attachments

mapwcs11.patch Download (3.3 KB) - added by nsavard 4 years ago.
source code modification of mapwcs11.c to output correct schemalocation and namespace

Change History

  Changed 4 years ago by sdlime

Is this 1.1.1 only? That is, does 1.0 work ok? If so then it should probably be assigned to Frank.

Steve

  Changed 4 years ago by nsavard

  • owner changed from sdlime to warmerdam

#comment:1 Steve it WCS 1.0 works ok. I'll assign it to Frank.

  Changed 4 years ago by tomkralidis

  • owner changed from warmerdam to tomkralidis
  • status changed from new to assigned

  Changed 4 years ago by warmerdam

  • cc warmerdam added

  Changed 4 years ago by tomkralidis

FYI fix made to trunk and branch-5-4 in r9269 and r9270.

Norm: can you run the CITE test again on this assertion? Thanks.

  Changed 4 years ago by nsavard

Tom: Compiling and going to test when the build is ready. Thanks.

  Changed 4 years ago by nsavard

Tom,

Sorry for the delay but I was investigating why the test still fail with the message below. Do you have a clue?

Log for test s0008/d1e329_1

Test wcs:GetCapabilities-main (s0008/d1e329_1)

Assertion: All assertions for "GetCapabilities" conformance are satisfied.

Request d1e369_1:
   Method: GET
   URL: http://dev1.lan.mapgears.com/manwe/cgi-bin/mswcs111_ogc_cite?service=WCS&request=GetCapabilities&sections=OperationsMetadata,Contents
   Response from parser ctlp:XMLValidatingParser:
      
   Messages from parser ctlp:XMLValidatingParser:
        Validation error:
  cvc-elt.1: Cannot find the declaration of element 'Capabilities'.
1 validation error detected.


Message d1e411_1:
   
 

Message d1e413_1:
   The service metadata document has version  but expected to find 1.1.1 as the highest protocol supported. See OGC 06-121r3 subclause 7.3.2.

Message d1e415_1:
   
 

Message d1e490_1:
   The server seems to have a problem with handling the GetCapabilities sections parameter. No tests will be performed.

Message d1e496_1:
   The EqualUpdateSequence value is .

Message d1e498_1:
   The URL for KVP encoding is .

Message d1e500_1:
   The URL for XML encoding is .

Message d1e512_1:
   XML encoding is not supported.

Message d1e524_1:
   sections-supported: false.

Result: Failed

  Changed 4 years ago by tomkralidis

I think this is happening because the GetCapabilities request is asking for specific sections of the Capabilities document as opposed to the entire Capabilities XML.

It doesn't look like the mapwcs11.c supports sections.

  Changed 4 years ago by nsavard

So what are we going to do?

  Changed 4 years ago by tomkralidis

Well, we need to add support for WCS 1.1 GetCapabilities to output sections if requested. I'll look into this.

  Changed 4 years ago by nsavard

"schemaLocation" was added. This ticket could be closed. I opened a new ticket for the support of "sections" parameter (see  http://trac.osgeo.org/mapserver/ticket/3105).

  Changed 4 years ago by tomkralidis

  • status changed from assigned to closed
  • resolution set to fixed

follow-up: ↓ 14   Changed 4 years ago by nsavard

  • status changed from closed to reopened
  • resolution fixed deleted

The schemalocation and the namespace of the capabilities and describecoverage requests have to point out to wcs/1.1.1 instead of wcs/1.1 based on the following document.

 http://cite.opengeospatial.org/te2/wcs-1.1.1-latest/docs/wcs/1.1.1/

I made the modifications locally on the trunk and the first OGC tests passed. I'll attach a patch.

Tom or Yewondwossen could validate?

Changed 4 years ago by nsavard

source code modification of mapwcs11.c to output correct schemalocation and namespace

in reply to: ↑ 13   Changed 4 years ago by tomkralidis

Replying to nsavard:

The schemalocation and the namespace of the capabilities and describecoverage requests have to point out to wcs/1.1.1 instead of wcs/1.1 based on the following document.  http://cite.opengeospatial.org/te2/wcs-1.1.1-latest/docs/wcs/1.1.1/ I made the modifications locally on the trunk and the first OGC tests passed. I'll attach a patch. Tom or Yewondwossen could validate?

Norm: thanks for this. Before I apply this patch, what happens when a client makes a 1.1.0 request? Does the namespace have to point to  http://www.opengis.net/wcs/1.1 instead?

Can you verify with CITE? We might have to modify the patch to set 1.1.1 _if_ a client sends no version parameter (and the WCS should return the highest version), or if < 1.1.1 is not requested.

  Changed 4 years ago by nsavard

Tom, I'm still investigating this morning if I understood correctly what I found yesterday. I'll report back.

follow-up: ↓ 18   Changed 4 years ago by nsavard

Re comment:15

Tom, first I want to say that I'm using schemas downloaded from  http://schemas.opengis.net/ (SCHEMAS_OPENGIS_NET.zip). The map file of the WCS 1.1 server 'ows_schemas_location' points to these schemas.

If I use the mapwcs11.c as it appears in SVN the GetCapabilities? response validates but the tests stop with the error pasted in comment:7.

I unzipped wcs-1_1_1.zip (part of the SCHEMAS_OPENGIS_NET.zip zip) under the wcs schemas directory. I applied the mapwcs11.patch patch. The GetCapabilities? response validates and the tests execute to the end.

  Changed 4 years ago by nsavard

RE comment:14

Norm: thanks for this. Before I apply this patch, what happens when a client makes a 1.1.0 request? Does the namespace have to point to  http://www.opengis.net/wcs/1.1 instead?

Can you verify with CITE? We might have to modify the patch to set 1.1.1 _if_ a client sends no version parameter (and the WCS should return the highest version), or if < 1.1.1 is not requested.

I'll send an email.

in reply to: ↑ 16   Changed 4 years ago by tomkralidis

Replying to nsavard:

Re comment:15 Tom, first I want to say that I'm using schemas downloaded from  http://schemas.opengis.net/ (SCHEMAS_OPENGIS_NET.zip). The map file of the WCS 1.1 server 'ows_schemas_location' points to these schemas. If I use the mapwcs11.c as it appears in SVN the GetCapabilities? response validates but the tests stop with the error pasted in comment:7. I unzipped wcs-1_1_1.zip (part of the SCHEMAS_OPENGIS_NET.zip zip) under the wcs schemas directory. I applied the mapwcs11.patch patch. The GetCapabilities? response validates and the tests execute to the end.

Norm: I thought, as per  http://schemas.opengis.net/wcs/LATEST-IS-1.1, everything 1.1.* is set to  http://www.opengis.net/wcs/1.1 as the namespace URI.

Perhaps we need clarification. If OGC is looking for  http://www.opengis.net/wcs/1.1.1 as the namespace URI instead, then these schemas should be unzipped in schemas.opengis.net.

  Changed 4 years ago by nsavard

Re comment:18 Tom, this practice doesn't seem to be used yet for the tests. Is it? I already posted a question on the forum based on your input.

 http://feature.opengeospatial.org/forumbb/viewtopic.php?t=1808

  Changed 4 years ago by tomkralidis

Further food for thought. GeoServer? returns 1.1.1 even when 1.1.0 is requested:

 http://sigma.openplans.org/geoserver/wcs?service=WCS&request=GetCapabilities&version=1.1.0

follow-up: ↓ 23   Changed 4 years ago by nsavard

Tom, there are some answers on the OGC forum (see comment:19) if you want to jump in.

  Changed 4 years ago by dmorissette

  • milestone changed from 5.4.3 release to 5.6 release

in reply to: ↑ 21   Changed 4 years ago by tomkralidis

Replying to nsavard:

Tom, there are some answers on the OGC forum (see comment:19) if you want to jump in.

Norm: I haven't seen any activity on  http://feature.opengeospatial.org/forumbb/viewtopic.php?t=1808

Not sure what to do here.

  Changed 3 years ago by dmorissette

  • milestone changed from 5.6 release to 6.0 release

  Changed 2 years ago by tomkralidis

  • status changed from reopened to closed
  • resolution set to wontfix

Closing until clear direction from OGC CITE tests is made.

Note: See TracTickets for help on using tickets.