[mapguide-trac] #1965: Linux: Preview feature of join feature class results in exception.

MapGuide Open Source trac_mapguide at osgeo.org
Wed Mar 7 01:45:02 EST 2012


#1965: Linux: Preview feature of join feature class results in exception.
-------------------------------+--------------------------------------------
   Reporter:  hubu             |       Owner:  hubu      
       Type:  defect           |      Status:  new       
   Priority:  high             |   Milestone:  2.4       
  Component:  Feature Service  |     Version:  2.2.0     
   Severity:  major            |    Keywords:  Join Linux
External_id:  1453197          |  
-------------------------------+--------------------------------------------

Comment(by hubu):

 Add a patch to fix this issue.

 Reason:
 On linux, we used STRING::rfind(pattern) to find the pattern from the
 string, once we didn't find the pattern, then return a infinite value.
 Then we used this infinite value to get the substr from the string, so the
 substr is incorrect. And the incorrect substr will cause the FDO exception
 on Linux.

 Solution:
 We should check whether the return value of STRING::rfind() is
 STRING::npos, if yes we shouldn't continue to get the substr from this
 value.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1965#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list