[Mapserver-dev] Question about basic authentication in a WMS connection

Sean Gillies sgillies at frii.com
Fri Feb 27 18:23:17 EST 2004


On Feb 27, 2004, at 2:10 PM, Daniel Morissette wrote:

> Sean Gillies wrote:
>> Hi all, I've run into a nasty bug with a WMS client connection.  I'm 
>> digging
>> into the code right now, but am hoping that one of the WMS developers 
>> will
>> have some suggestions for me.
>> Problem is that with the CVS mapserver a WMS layer with a connection 
>> like
>>     CONNECTION "http://user:passwd@host/servlet?&foo=bar"
>> is falling all the way through the logic in msDrawLayer to the point 
>> where
>> we try to draw it using drawEPPL().  Any reasons why this connection
>> wouldn't work?
>
> The problem could be that CURL doesn't extract the user:password from 
> the URL automatically (I never tested that before).  For sure there is 
> a curl option to pass the user password that we should add support 
> for.  I thought there was a bug about this but couldn't find this, so 
> I've created one:
>   http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=581
>
> Daniel

Thanks for the reply, Daniel, I really appreciate it.

Turns out that the service, which the developers claimed was WMS 
compliant, was
requiring lower case WMS parameters.  This isn't up to spec, is it?

So I hacked mapwmslayer.c to emit a GetMap with lower case params.  And 
now
it "works", but sure smells bad.

Don't worry, I won't commit this to CVS!

Sean




More information about the mapserver-dev mailing list