hi Frank,

Would you be able to try to reproduce that bug using a manual installation of 
mapserver/python binding. I would be interrested to know if it's a packaging 
bug or not. It might be a swig binding bug.

Thanks,
Alan

On February 15, 2011 10:05:02 am Frank Broniewski wrote:
> Hi,
> 
> I have a problem with python mapscript concerning the OWSRequest.
> Whenever I pass an URL to setParameter and call OWSDispatch(request)
> mapscript crashes with a segfault. A small snippet for testing:
> 
> request = mapscript.OWSRequest()
> request.setParameter('LAYERS','post')
> request.setParameter('SLD', 'http://192.168.0.111/sld/style.sld')
> request.setParameter('FORMAT','image/png')
> request.setParameter('SERVICE','WMS')
> request.setParameter('VERSION','1.1.1')
> request.setParameter('REQUEST','GetMap')
> request.setParameter('STYLES','')
> request.setParameter('EXCEPTIONS','application/vnd.ogc.se_inimage')
> request.setParameter('SRS','EPSG:2169')
> request.setParameter('BBOX','64757.194165115,66551.046310101,89442.80583488
> 5,83748.953689899') request.setParameter('WIDTH','1399')
> request.setParameter('HEIGHT','975')
> 
> map = mapscript.mapObj('/usr/local/mapconf/share/osm.map')
> map.OWSDispatch(request)
> 
> 
> 
> Map debug level is 5, console output is:
> brfr@E033:/usr/local/www$ python ows_test.py
> Content-type: image/png
> 
> Segmentation fault
> 
> 
> 
> I am using the following sources:
> deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main
> deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
> hardy main
> 
> 
> Whenever I pass the request to the mapserver cgi all works as expected.
> It seems the parameter parser for python mapscript uses another parser
> than cgi-mapserver. Using urllib.quote, urllib.quote_plus doesn't help
> any further.
> 
> 
> 
> Many thanks for help and tipps
> 
> 
> Frank

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
_______________________________________________
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Reply via email to