Opened 20 years ago

Last modified 18 years ago

#970 new defect

pattern YYYYMMDD does not work on windows

Reported by: assefa Owned by: assefa
Priority: high Milestone: FUTURE
Component: WMS Server Version: 4.3
Severity: normal Keywords:
Cc:

Description

due to implementation of the local strptime.c used on windows the pattern
YYYYMMDD does not work. The parser expects some kind of non numerical delimiter
between the diffrent part of the date.

Change History (2)

comment:1 by assefa, 20 years ago

Milestone: FUTURE
Owner: changed from mapserverbugs to assefa
I am not modifying strptime for now. Will revisit.

comment:2 by nsavard@…, 18 years ago

The msautotest tests for this time format have been disable for now since we
could not run them on Linux and Windows, and get the same results.  Just a note
to reactivate the msautotest tests related to this time format when this bug
will be fix.

We are concerned with the following tests:

#
#Pattern 1 "%Y%m%d
#
# Note:  Pattern 1 "%Y%m%d"  : does not work (on windows at least) : problem
with strptime (parsing of the year is done like this (line 408) ret = strtol (buf,
&s, 10) (where buffer =20040101 so the return year is 20040101
#
# Draw a layer by using single time value
#
# RUN_PARMS: wms_time_pattern1a.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101'
> [RESULT_DEMIME]
#
# Draw a layer by using multiple time values
#
# RUN_PARMS: wms_time_pattern1b.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101,20040102'
> [RESULT_DEMIME]
#
# Draw a layer by using a range time values
#
# RUN_PARMS: wms_time_pattern1c.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101/20040102'
> [RESULT_DEMIME]
#
# Draw a layer by using multiple ranges time values
#
# RUN_PARMS: wms_time_pattern1d.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101/20040102,20040103/20040104'
> [RESULT_DEMIME]
#
#Pattern2 : "%Y-%m-%dT%H:%M:%SZ"
#
# Draw a layer by using multiple ranges time values
#
# RUN_PARMS: wms_time_pattern2d.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern2&Time=20040101/20040102,20040103/20040104'
> [RESULT_DEMIME]
#

Note: See TracTickets for help on using tickets.