[fusion-trac] #229: MapGuide FeatureReaders not being closed properly?

Fusion trac_fusion at osgeo.org
Mon Mar 23 17:03:46 EDT 2009


#229: MapGuide FeatureReaders not being closed properly?
-----------------------+----------------------------------------------------
   Reporter:  jbirch   |       Owner:  madair
       Type:  defect   |      Status:  new   
   Priority:  P2       |   Milestone:  2.0   
  Component:  Widgets  |     Version:  1.1.1 
   Severity:  Major    |    Keywords:        
External_id:           |       State:  New   
    Browser:  All      |          Os:  All   
-----------------------+----------------------------------------------------
 There are a few cases where I believe an !MgFeature is being opened and
 not being closed properly.

 --------------------------------------------

 1) I believe that for:
   trunk/layers/MapGuide/php/Query.php

 There is an !MgFeatureReader being opened on line 199 which is being
 closed on line 268.

 However, on line 261, I believe that a second !MgFeatureReader is being
 opened using the same variable name without closing the initial
 !MgFeatureReader first, and that this second reader is never closed.

 2) It looks to me that in the file
   trunk/widgets/Search/Search.php

 The !MgFeatureReader called $features is only closed in the exception
 handling logic, not in the normal code stream.

 3) In:
  trunk/widgets/SelectWithin/SelectWithin.php

 On line 109, it appears that an !MgFeatureReader called $featureReader is
 opened but not closed.

 --------------------------------------------

 I believe that these may be the (partial?) cause of a problem I am having
 with running out of connections.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/229>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list