Opened 15 years ago
Closed 13 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)
Change History (26)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Owner: | changed from | to
---|
#comment:1 Steve it WCS 1.0 works ok. I'll assign it to Frank.
comment:3 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 15 years ago
Cc: | added |
---|
comment:5 by , 15 years ago
comment:7 by , 15 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§ions=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 , 15 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:10 by , 15 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 , 15 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
follow-up: 14 comment:13 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 15 years ago
Attachment: | mapwcs11.patch added |
---|
source code modification of mapwcs11.c to output correct schemalocation and namespace
comment:14 by , 15 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 , 15 years ago
Tom, I'm still investigating this morning if I understood correctly what I found yesterday. I'll report back.
follow-up: 18 comment:16 by , 15 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 , 15 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.
comment:18 by , 15 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 , 15 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 , 15 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
follow-up: 23 comment:21 by , 15 years ago
Tom, there are some answers on the OGC forum (see comment:19) if you want to jump in.
comment:22 by , 15 years ago
Milestone: | 5.4.3 release → 5.6 release |
---|
comment:23 by , 15 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 , 14 years ago
Milestone: | 5.6 release → 6.0 release |
---|
comment:25 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Closing until clear direction from OGC CITE tests is made.
Is this 1.1.1 only? That is, does 1.0 work ok? If so then it should probably be assigned to Frank.
Steve