Closed
Bug 16225
Opened 25 years ago
Closed 25 years ago
hasValue barfs when comparing DN
Categories
(Directory :: PerLDAP, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tarasd, Assigned: leif)
Details
hasValue() assumes that all attributes are stored as an array ref.
This is unfortunate when comparing DN because DN is stored as a scalar,
hence hasValue() barfs on the foreach.
A quick fix might be:
In Entry.pm, lines 637 and 645, change
foreach $attrval (@{$self->{$attr}})
to
foreach $attrval ((lc($attr) eq "dn") ? $self->{"dn"} : @{$self->{$attr}})
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 1•25 years ago
|
||
hasValue now has:
return 0 unless defined($self->{$attr});
DN isn't an atttribute, so hasValue doesn't work on it. Use getDN() to compare
what the DN is.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•