Ticket #1824 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

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) (diff)

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

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

Change History

follow-up: ↓ 2   Changed 6 years ago by nsavard

  • 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

Changed 6 years ago by nsavard

map file

Changed 6 years ago by nsavard

text file: epsg2

Changed 6 years ago by nsavard

binary file: road data

in reply to: ↑ 1   Changed 6 years ago by nsavard

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.

  Changed 6 years ago by dmorissette

  • owner changed from mapserverbugs to dmorissette
  • description modified (diff)
  • milestone set to 5.0 release

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.

  Changed 6 years ago by dmorissette

  • status changed from new to closed
  • resolution set to fixed

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.