Opened 18 years ago

Closed 17 years ago

#1824 closed defect (fixed)

WMS Fails with SRS=AUTO and long latitude and longitude

Reported by: steve@… Owned by: dmorissette
Priority: low Milestone: 5.0 release
Component: WMS Server Version: 4.8
Severity: normal Keywords:
Cc: nsavard@…

Description (last modified by dmorissette)

The following query fails:
http://localhost/mapserv.cgi?map=webs_2beta.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=400&HEIGHT=300&BBOX=-100000,-100000,100000,100000&LAYERS=rxsignal&SRS=AUTO:42003,9001,-121.725597088,38.4862523467

With:(Formatting Omitted)
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid
for all requested layers.

This query succeeds:
http://localhost/mapserv.cgi?map=webs_2beta.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=400&HEIGHT=300&BBOX=-100000,-100000,100000,100000&LAYERS=rxsignal&SRS=AUTO:42003,9001,-121.7,38.4

The original query was much longer(other parameters) however it only appears to
be a problem with the length of the Lat and Lon on the SRS=AUTO item and not the
entire query.

Version is:
MapServer version 4.8.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

(The same occurs with 4.8.3 in our test environment)

Attachments (3)

ticket1824.map (975 bytes ) - added by nsavard 17 years ago.
map file
epsg2 (156 bytes ) - added by nsavard 17 years ago.
text file: epsg2
road.zip (17.2 KB ) - added by nsavard 17 years ago.
binary file: road data

Download all attachments as: .zip

Change History (7)

comment:1 by nsavard, 17 years ago

Cc: nsavard@… added

This error also occured with srs set to 42304. I'll attach the necessary file.

MapServer version 5.0.0-beta5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

by nsavard, 17 years ago

Attachment: ticket1824.map added

map file

by nsavard, 17 years ago

Attachment: epsg2 added

text file: epsg2

by nsavard, 17 years ago

Attachment: road.zip added

binary file: road data

in reply to:  1 comment:2 by nsavard, 17 years ago

Replying to nsavard:

This error also occured with srs set to 42304. I'll attach the necessary file.

MapServer version 5.0.0-beta5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

This comment is no more valid. There was a mistake in my request. Sorry for the noise.

comment:3 by dmorissette, 17 years ago

Description: modified (diff)
Milestone: 5.0 release
Owner: changed from mapserverbugs to dmorissette

nsavard's comments are unrelated to the original problem report, please ignore them.

I have tested and reproduced the original issue related to the length of the SRS=AUTO parameters and will try to fix now.

comment:4 by dmorissette, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in r6732 (will by in 5.0.0-beta6). There was a buffer overflow in the handling of SRS=AUTO:....

Note: See TracTickets for help on using tickets.