Opened 14 years ago
Closed 14 years ago
#3352 closed defect (fixed)
Bad Grid causes problems . error message not helpful.
Reported by: | h4ck3rm1k3 | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 5.6.2 release |
Component: | MapServer C Library | Version: | 5.6 |
Severity: | normal | Keywords: | grid |
Cc: | sdlime |
Description
Bad Grid in mapserver
LAYER NAME "grid" TYPE LINE STATUS DEFAULT GRID LABELFORMAT "DDMM" MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 2 END END # Layer
produces :
==> /var/log/apache2/error.log <== [Sat Feb 27 20:02:56 2010] [error] [client ::1] Premature end of script
Change History (3)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Cc: | added |
---|---|
Keywords: | grid added |
Milestone: | 5.6.1 release |
Owner: | changed from | to
Severity: | minor → normal |
I have reproduced a crash in msGraticuleLayerOpen() where there seems to be an assumption there will be at least one CLASS available. I will dig a bit deeper and ensure that the code at least issues a clean runtime error rather than crashing, and possibly even does not depend on the class if that seems appropriate.
comment:3 by , 14 years ago
Milestone: | → 5.6.2 release |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I have fixed the GraticuleLayerOpen function to not crash if there are no classes, and also to issue a debug message if there are no classes since it not produce anything useful.
Note:
See TracTickets
for help on using tickets.
Full Map file:
URL: