[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    Fwd: uninit bug in Net::LDAP
From:       Graham Barr <gbarr () pobox ! com>
Date:       2004-01-28 20:35:24
Message-ID: 801BF845-51D1-11D8-B974-0003937E19DE () pobox ! com
[Download RAW message or body]

Begin forwarded message:
> From: Uri Guttman <uri@stemsystems.com>
> Date: 28 January 2004 00:05:16 GMT
> To: gbarr@pobox.com
> Subject: uninit bug in Net::LDAP
> Message-Id: <x765ex545f.fsf@mail.sysarch.com>
>
>
> hi graham,
>
> i am using Net::LDAP for a project and i found a minor bug in the
> module. if i do a search call and don't pass in a filter, it barfs out
>
> Use of uninitialized value in substitution (s///) at
> /usr/local/lib/perl5/site_perl/5.6.1/Net/LDAP/Filter.pm line 167, 
> <DATA>
> line 283.
>
> the code there is stripping leading white space off the filter but of
> course if none was passed in, it spits out the undef value warning. the
> docs don't seem to say filter is required (i am not an ldap expert and
> someone else is helping me with this). so i think the search method
> should set the filter to '' or return an error if filter is not set.
>
> thanx,
>
> uri
>
> -- 
> Uri Guttman  ------  uri@stemsystems.com  -------- 
> http://www.stemsystems.com
> --Perl Consulting, Stem Development, Systems Architecture, Design and 
> Coding-
> Search or Offer Perl Jobs  ----------------------------  
> http://jobs.perl.org
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic