Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#1033 closed defect (invalid)

[MapServer-WMS Server]Invalid time resolution returns data

Reported by: nsavard@… Owned by: assefa
Priority: high Milestone: 4.4 release
Component: WMS Server Version: 4.3
Severity: normal Keywords:
Cc:

Description

The following request returns data when the "wms_timeformat" is not used or is
set to "YYYY-MM-DD HH:MM:SS".  It should return no data.  Should it return an
exception?


http://server/cgi-bin/mapserv_43?map=/path/to/time_test/htdocs/wms_time.map&
request=GetMap&Version=1.1.1&LAYERS=time&Time=2004-01-01%2014:10


The layer metadata are:
  METADATA
    "DESCRIPTION" "time"
    "wms_title" "time"
    "wms_timeitem"  "TIME"
    "wms_timeextent"  "2004-01-01/2004-02-01"   
  END



Found on MapServer from CVS 20041105
Mozilla 1.6

Change History (3)

comment:1 by assefa, 20 years ago

Cc: mapserver-bugs@… added
Milestone: 4.4 release
Owner: changed from mapserverbugs to assefa
I am assuming that the data you are using is of format YYYY-MM-DD HH-MM-SS (with
values like 2004-01-01 14:10:00.
It should return a data in this case. Ultimatly the  wms_timeformat is there to
give the possibily to do queries using a certain level of resolution. 
For example a dabase that contain times like 2004-01-01 14:10:00, 2004-01-01
14:20:00 can be queried at a resolution of hour by setting the wms_timeformat to
something like YYYY-MM-DD HH with a time=2004-01-01 14 (It would return in this
example both elements).
But if the wms_timeformat is not used or the time passed does not match one of
the time format set, you end up comparing all the fileds of the time passed in a
parameter with all the fileds of the data (in this case is 2004-01-01 14:10
equals  to 2004-01-01 14:10:00 and it is definitly equal).


comment:2 by nsavard@…, 20 years ago

Resolution: invalid
Status: newclosed
Time variables used in MapServer have default values.  In the case of seconds
the default value is "00".  When a user enter a value like "2004-01-01 14:10",
MapServer assumed that the value is "2004-01-01 14:10:00".  It is why data is
returned eventhough the "wms_timeformat is not used or is set to "YYYY-MM-DD
HH:MM:SS".

comment:3 by nsavard@…, 20 years ago

This is an invalid bug.
Note: See TracTickets for help on using tickets.