[ic] $::Control leaking between pages? (was: Data appearing from different catalog)

Klaatu IC icgort33 at gmail.com
Mon Apr 4 01:10:40 UTC 2016


> Quoting Mike Heins (mikeh at endpoint.com):
>> Quoting Peter (peter at pajamian.dhs.org):
>> > On 03/04/16 12:25, Peter wrote:
>> > > This sounds like $::Control is leaking between page requests, are you
>> > > running Interchange in RPC traffic mode (as set in interchange.cfg)?

Just to confirm, yes IC running in RPC mode.

>> Probably we should set $::Control as part of init_session.
>
> Actually, this should happen in Vend::Server::reset_vars(), and I have
> done that. If you apply this patch:
>
> diff --git a/lib/Vend/Server.pm b/lib/Vend/Server.pm
> index e31c8f9..52855b3 100644
> --- a/lib/Vend/Server.pm
> +++ b/lib/Vend/Server.pm
> @@ -1240,6 +1240,7 @@ sub reset_vars {
>         package CGI;
>         reset 'A-Z';
>         reset 'a-z';
> +       undef $::Control;
>         undef %Vend::Table::DBI::DBI_connect_cache;
>         undef %Vend::Table::DBI::DBI_connect_bad;
>         undef %Vend::Table::DBI::DBI_connect_count;
>
> It should remove the problem. I have committed this to the repository.

Patch applied to our install and IC restarted. Thank you!



More information about the interchange-users mailing list