FeatureReader not being closed in MapGuide Query.php?

5 messages Options
Embed this post
Permalink
Jason Birch

FeatureReader not being closed in MapGuide Query.php?

Reply Threaded More More options
Print post
Permalink
Could someone check my logic on this one please?

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.

Thoughts?  Time for an eye exam?

Thanks,
Jason

_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Jason Birch

RE: FeatureReader not being closed in MapGuide Query.php?

Reply Threaded More More options
Print post
Permalink
Similarly...

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.

Jason

-----Original Message-----
From: Jason Birch
Sent: March-23-09 1:14 PM
To: [hidden email]
Subject: [fusion-dev] FeatureReader not being closed in MapGuide Query.php?

Could someone check my logic on this one please?

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.

Thoughts?  Time for an eye exam?

Thanks,
Jason
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Jason Birch

RE: RE: FeatureReader not being closed in MapGuide Query.php?

Reply Threaded More More options
Print post
Permalink
Should I be entering tickets for these?  I didn't expect to find so many that I had questions about.

Another in:
 trunk/widgets/SelectWithin/SelectWithin.php

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

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Birch
Sent: March-23-09 1:23 PM
To: [hidden email]
Subject: [fusion-dev] RE: FeatureReader not being closed in MapGuide Query.php?

Similarly...

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.

Jason

-----Original Message-----
From: Jason Birch
Sent: March-23-09 1:14 PM
To: [hidden email]
Subject: [fusion-dev] FeatureReader not being closed in MapGuide Query.php?

Could someone check my logic on this one please?

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.

Thoughts?  Time for an eye exam?

Thanks,
Jason
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Mike Adair

Re: RE: FeatureReader not being closed in MapGuide Query.php?

Reply Threaded More More options
Print post
Permalink
Yes a ticket would be good to keep track.  I thought we found all those
but it appears not...

Mike

Jason Birch wrote:

> Should I be entering tickets for these?  I didn't expect to find so many that I had questions about.
>
> Another in:
>  trunk/widgets/SelectWithin/SelectWithin.php
>
> On line 109, it appears that an MgFeatureReader called $featureReader is opened but not closed.
>
> Jason
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Birch
> Sent: March-23-09 1:23 PM
> To: [hidden email]
> Subject: [fusion-dev] RE: FeatureReader not being closed in MapGuide Query.php?
>
> Similarly...
>
> 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.
>
> Jason
>
> -----Original Message-----
> From: Jason Birch
> Sent: March-23-09 1:14 PM
> To: [hidden email]
> Subject: [fusion-dev] FeatureReader not being closed in MapGuide Query.php?
>
> Could someone check my logic on this one please?
>
> 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.
>
> Thoughts?  Time for an eye exam?
>
> Thanks,
> Jason
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>
>  

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Jason Birch

RE: RE: FeatureReader not being closed in MapGuide Query.php?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jason Birch
Forgot to copy list, sorry for the duplicate email Mike.

Done, #229.

http://trac.osgeo.org/fusion/ticket/229

If you get a chance to fix these, it would be awesome if you could back-port them to the 1.1 branch.

Jason

-----Original Message-----
From: Mike Adair [mailto:[hidden email]]
Sent: March-23-09 1:44 PM
To: Jason Birch
Cc: [hidden email]
Subject: Re: [fusion-dev] RE: FeatureReader not being closed in MapGuide Query.php?

Yes a ticket would be good to keep track.  I thought we found all those
but it appears not...
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev