[Mapserver-users] Why Mapserver GML does not validate with XMLSpy (last one)

Bart van den Eijnden bartvde at xs4all.nl
Thu Jun 17 14:10:38 PDT 2004


Hi Daniel, Steve (cc list),

you guys were right (how could I have doubted .... :) ).

I asked the guy (Mike Brown) who's e-mail message was quoted in the post 
by the Altova support engineer. I have forwarded his message below. He 
states it is a bug in XMLSpy.

I hope this will get addressed in XMLSpy and I will contact them as well.

Thanks for your patience.

Best regards,
Bart

------- Forwarded message -------
From: Mike Brown <mike at skew.org>
To: bart.van.den.eijnden at geodan.nl
Subject: Re: question about CGI
Date: Thu, 17 Jun 2004 14:59:02 -0600 (MDT)

> Bart van den Eijnden wrote:
>> Hi Mike,
>>
>> somebody at Altova (from the XMLSpy product) is referring to an e-mail
>>  from you in a forum discussion. He states that you can use & in the
>> URL to a CGI program to separate name value pairs. The people who 
>> created
>> the CGI are saying XMLSpy should decode & to & before sending the
>> request to the CGI.
>>
>> Maybe you can shed some light on this?
>>
>> See:
>> http://www.altova.com/forum/forums/forum.asp?forumid=28&page=1&select=4262#xx4262xx
>> http://www.altova.com/forum/forums/forum.asp?forumid=28&page=1&select=4266#xx4266xx
>>
>> Thanks in advance.
>>
>> Best regards,
>> Bart
>
>
> I had to backtrack through the forum postings a bit to figure out where 
> XMLSpy was
> getting the URI in question and why it was trying to access it.
>
> It is clearly a bug in XMLSpy (or whatever they are relying on to 
> extract URIs
> from the whitespace-separated list of URIs in the xsi:schemaLocation 
> attribute).
>
> This is the URI (1):
>
>   http://www.vz.geodan.nl:1112/cgi-bin/mapserv.exe?map=/ms4w_20/apps/general/map/gemeentes.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Gemeentes
>
> You have written it in your attribute value in the manner required by 
> XML (2):
>
>   http://www.vz.geodan.nl:1112/cgi-bin/mapserv.exe?map=/ms4w_20/apps/general/map/gemeentes.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Gemeentes"
>
> Whatever conformant XML parser reads (1) in the XML document should not 
> even
> expose it as anything other than (2) to whatever is doing the 
> dereferencing.
> So if XMLSpy is asking your server for anything other than
>
>   /cgi-bin/mapserv.exe?map=/ms4w_20/apps/general/map/gemeentes.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Gemeentes
>
> then it is just wrong. The argument shouldn't even get as far as what 
> the CGI
> spec does and does not allow.
>
> That said, & in a query part is allowable from the HTTP and URI 
> spec's
> point of view, but when parsed by a CGI engine, the 'amp;' is going to be
> considered part of the name in a name-value pair, and this is how it 
> will be
> exposed in the environment to your CGI application.
>
> -Mike
>
>

-- 
  



More information about the MapServer-users mailing list