Opened 13 years ago

Closed 11 years ago

#3086 closed defect (wontfix)

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 (1)

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

Download all attachments as: .zip

Change History (26)

comment:1 by sdlime, 13 years ago

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

Steve

comment:2 by nsavard, 13 years ago

Owner: changed from sdlime to warmerdam

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

comment:3 by tomkralidis, 13 years ago

Owner: changed from warmerdam to tomkralidis
Status: newassigned

comment:4 by warmerdam, 13 years ago

Cc: warmerdam added

comment:5 by tomkralidis, 13 years ago

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.

comment:6 by nsavard, 13 years ago

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

comment:7 by nsavard, 13 years ago

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

comment:8 by tomkralidis, 13 years ago

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.

comment:9 by nsavard, 13 years ago

So what are we going to do?

comment:10 by tomkralidis, 13 years ago

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

comment:11 by nsavard, 13 years ago

"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).

comment:12 by tomkralidis, 13 years ago

Resolution: fixed
Status: assignedclosed

comment:13 by nsavard, 13 years ago

Resolution: fixed
Status: closedreopened

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?

by nsavard, 13 years ago

Attachment: mapwcs11.patch added

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

in reply to:  13 comment:14 by tomkralidis, 13 years ago

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.

comment:15 by nsavard, 13 years ago

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

comment:16 by nsavard, 13 years ago

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.

comment:17 by nsavard, 13 years ago

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 comment:18 by tomkralidis, 13 years ago

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.

comment:19 by nsavard, 13 years ago

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

comment:20 by tomkralidis, 13 years ago

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

comment:21 by nsavard, 13 years ago

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

comment:22 by dmorissette, 13 years ago

Milestone: 5.4.3 release5.6 release

in reply to:  21 comment:23 by tomkralidis, 13 years ago

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.

comment:24 by dmorissette, 12 years ago

Milestone: 5.6 release6.0 release

comment:25 by tomkralidis, 11 years ago

Resolution: wontfix
Status: reopenedclosed

Closing until clear direction from OGC CITE tests is made.

Note: See TracTickets for help on using tickets.