Opened 21 years ago

Last modified 19 years ago

#398 new defect

OGC Cite WMS Test Suite-Invalid GML document structure returned by the WMS server

Reported by: nsavard@… Owned by: mapserverbugs
Priority: high Milestone: FUTURE
Component: WMS Server Version: 4.1
Severity: minor Keywords:
Cc:

Description

After the above request (see URL) was sent to the WMS server, the server sent
back a GML document that did not validated against the specification. 

Test path:  wms/wmsops/getfeatureinfo/params/info_format/3

Error reported by the validator:

* Thu Jul 31 17:20:49 BST 2003 : Line = 6 Column = 57 Message = {cvc-elt.1:
Cannot find the declaration of element 'msGMLOutput'.}

I tried many tests but for now I can figure out what is the problem.
--------------------------------------
see also the email discussion between Jerome Sonnet and Paul Austin.  He is a
snippet:

All,
I have a question regarding the test
wms/wmsops/getfeatureinfo/params/info_format/3.

We have two errors,
Thu Jul 31 09:17:33 BST 2003 : Line = 2 Column = 371 Message =
{cvc-elt.1: Cannot find the declaration of element
'cblf:BlueLakeFeatureCollectionType'.}

Thu Jul 31 09:17:33 BST 2003 : Line = 9 Column = 110 Message =
{cvc-complex-type.2.4.a: Invalid content starting with element
'cblf:LakeFeature'. The content must match
'(("http://www.opengis.net/gml":_Feature)){0-1}'.}

While what we are sending bakc seems correct to me,

<?xml version="1.0" encoding="UTF-8"?>
<cblf:BlueLakeFeatureCollectionType
xmlns:cblf="http://www.opengis.net/cite/bluelake"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:cgf="http://www.opengis.net/cite/geometry"
xmlns:ogcwfs="http://www.opengis.net/wfs"
scope="http://dev.ionicsoft.com:8081/cite/wfs/CITEBL?">
  <gml:boundedBy>
    <gml:Box srsName="EPSG:4326">
      <gml:coordinates>6.0E-4,-0.0018 0.0031,-1.0E-4</gml:coordinates>   
    </gml:Box>
  </gml:boundedBy>
  <gml:featureMember>
    <cblf:LakeFeature
fid="LakeFeatureType.4332384645463732393038453242394445303334303830303230463035364134">
      <cblf:name>Blue Lake</cblf:name>
      <cblf:shore>
        <gml:Polygon srsName="EPSG:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing srsName="EPSG:4326">
              <gml:coordinates>6.0E-4,-0.0018 0.0010,-6.0E-4 0.0024,-1.0E-4
0.0031,-0.0015 6.0E-4,-0.0018</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </cblf:shore>
    </cblf:LakeFeature>
  </gml:featureMember>
</cblf:BlueLakeFeatureCollectionType>

Does this test requires any schemalocation or other specific attribute.
If so, this test is not compliant with the specifications. It is not
said anywhere that we have to set the schemalocation.

Jerome.

Change History (9)

comment:1 by nsavard@…, 21 years ago

The URL of the tool to test the GML against:


http://cite.occamlab.com/gmlTools/validate

comment:2 by nsavard@…, 21 years ago

The WMS server returned the following document with no feature information inside:

<?xml version="1.0" encoding="ISO-8859-1"?>

<msGMLOutput 
	 xmlns:gml="http://www.opengis.net/gml"
	 xmlns:xlink="http://www.w3.org/1999/xlink"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</msGMLOutput>

comment:3 by nsavard@…, 21 years ago

bug_file_loc: http://www2.dmsolutions.ca/cgi-bin/mswms_ogc_cite?Y=60&X=60&LaYeRs=Lakes&VeRsIoN=1.1.1&ReQuEsT=GetFeatureInfo&FoRmAt=image/gif&WiDtH=200&BbOx=0,-0.0020,0.0040,0&QuErY_LaYeRs=Lakes&HeIgHt=100&StYlEs=&SrS=EPSG:4326&InFo_fOrMaT=application/vnd.ogc.gmlhttp://cite.opengroup.org/tsOGC/interface/ViewLog?testid=wms/wmsops/getfeatureinfo/params/info_format/3&ts=0001&sesstype=OGC
URL of the request:  

http://www2.dmsolutions.ca/cgi-bin/mswms_ogc_cite?Y=60&X=60&LaYeRs=Lakes&VeRsIoN=1.1.1&ReQuEsT=GetFeatureInfo&FoRmAt=image/gif&WiDtH=200&BbOx=0,-0.0020,0.0040,0&QuErY_LaYeRs=Lakes&HeIgHt=100&StYlEs=&SrS=EPSG:4326&InFo_fOrMaT=application/vnd.ogc.gml

comment:4 by nsavard@…, 20 years ago

*** Bug 501 has been marked as a duplicate of this bug. ***

comment:5 by assefa, 20 years ago

Please refer also to Bug 800 and 801 which are related to this.

comment:6 by dmorissette, 20 years ago

dependson: 800, 801

comment:7 by dmorissette, 19 years ago

Resolution: fixed
Status: newclosed
The URL from comemnt #3 does return some data now (see below), so I guess that
means the problem is fixed? Please reopen with more details if there is still a
problem.

<?xml version="1.0" encoding="ISO-8859-1"?>

<msGMLOutput 
	 xmlns:gml="http://www.opengis.net/gml"
	 xmlns:xlink="http://www.w3.org/1999/xlink"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Lakes_layer>
		<Lakes_feature>
			<FID>101</FID>
			<NAME>Blue Lake</NAME>
			<gml:boundedBy>
				<gml:Box srsName="EPSG:4326">
					<gml:coordinates>
						0.000600,-0.001800 0.003100,-0.000100
					</gml:coordinates>
				</gml:Box>
			</gml:boundedBy>
			<gml:MultiPolygon srsName="EPSG:4326">
			</gml:MultiPolygon>
		</Lakes_feature>
	</Lakes_layer>
</msGMLOutput>

comment:8 by nsavard@…, 19 years ago

Resolution: fixed
Status: closedreopened
The problem is not that the server returns no data but that data is not
validating.  This OGC WMS test still fail.

comment:9 by dmorissette, 19 years ago

Milestone: FUTURE
Owner: changed from dmorissette@… to mapserverbugs
Status: reopenednew
This probably happens because the GetFeatureInfo output doesn't include a
schema. Setting target milestone FUTURE. This doesn't prevent us from passing
the WMS compliance tests (it's an optional test).
Note: See TracTickets for help on using tickets.