MapServer / MapServer-import

3 stars 2 forks source link

[MapServer-WMS]Incorrect message in service exception when no time and no wms_timedefault #986

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: nsavard@mapgears.com Date: 2004/10/22 - 15:35

The message in the service exception is incorrect when the "time" parameter in
the URL request is not set and when the "wms_timedefault" is not set.

The request sent is:

http://server/cgi-bin/mapserv_43?map=/path/to/time_test/htdocs/
wms_time_pattern_12_13_test.map&request=GetMap&Version=1.1.1&
LAYERS=pattern12&Time=

Fedora Core 2
MS CVS 2004-10-21T16:38
--------------------
Map file snippet:

...

LAYER
  NAME pattern12
  METADATA
    "DESCRIPTION" "pattern12"
    "wms_title" "pattern12"
    "wms_timeitem"  "TIME"
    "wms_timeextent"  "T14:00:00Z/T18:00:00Z"   
  END

  PROJECTION
    "init=epsg:4326"
  END 
  TYPE POINT
  STATUS ON
  DATA pattern12
  CLASS
   SYMBOL 2
    SIZE 8
    COLOR 255 0 0        
  END

END

----------------
Returned service exception:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidDimensionValue">
msWMSApplyTime: WMS server error. No Time value was given, and the default time
value 2004-01-01 14:10:00 is invalid or outside the time extent defined
T14:00:00/T18:00:00
</ServiceException>
</ServiceExceptionReport>
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/10/22 - 15:36

Reassigned to Assefa.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/10/22 - 15:47

More info:

When the default time parameter "wms_timedefault" is set to something valid like:
"wms_timedefault"  "T15:10:00Z", the same service exception described in this
bug description is returned.  MapServer is not looking for the correct
"wms_timedefault" parameter value.
tbonfort commented 12 years ago

Author: assefa Date: 2004/10/22 - 18:14

Norm,

 I just tested this. I get the following exception when the time value is not
given and there is no default time set.

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="MissingDimensionValue">
msWMSApplyTime: WMS server error. No Time value was given, and no default time
value defined.
</ServiceException>
</ServiceExceptionReport>

It is weird that the value of 2004-01-01 14:10:00  is returned in the exception
if nothing in the map file was set. You should maybe send me your map file if
this is still a real bug.
tbonfort commented 12 years ago

Author: assefa Date: 2004/10/25 - 16:52

I reproduced this with you test map file. It is corrected in mapws.c (r1.124). 
There was a missing test to check the layer status before applying the time 
(only on layers given in the request).