[Mapguide-trac] [mapguide-trac] #2467: MgOutOfRangeException when selecting features whose DateTime entry pre-dates 1970
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Jul 10 07:52:54 PDT 2014
#2467: MgOutOfRangeException when selecting features whose DateTime entry pre-
dates 1970
-------------------------+--------------------------------------------------
Reporter: kshippey | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 2.6
Component: Map Agent | Version: 2.5.0
Severity: major | Keywords: MgDateTime Selection Error
External_id: |
-------------------------+--------------------------------------------------
Mapguide 2.6 version throws an Out of Range exception any time a feature
is selected if its date property is before Jan 1, 1970. This traces to a
use of the MgDateTime::ToTimeValue() to return date attribute data; this
did not occur in Mapguide 2.5. The query URL goes to mapagent.fcgi so
this is likely present in all current viewers, but I have only tested in
the Fusion web layout.
Exception handler returns the following:
Out of range. - MgHttpQueryMapFeatures.Execute() line 151 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\web\src\httphandler\HttpQueryMapFeatures.cpp
- MgDateTime.ToTimeValue() line 859 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\common\foundation\Data/DateTime.cpp
The current workaround is to remove the 'Date' fields from all of our
LayerDefinition property mappings.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2467>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list