Skip Menu |

This queue is for tickets about the Net-LDAPapi CPAN distribution.

Report information
The Basics
Id: 58270
Status: new
Priority: 0/
Queue: Net-LDAPapi

People
Owner: Nobody in particular
Requestors: dev-zero [...] gentoo.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.0.3
Fixed in: (no value)



Subject: 'sub error' reports LDAP_RES_INTERMEDIATE as error
Due to the changes from 3.0.2 to 3.0.3 errorize gets called for all possible return values of ldap_search which is wrong since those are not standard ldap error numbers, thus reporting return values like LDAP_RES_INTERMEDIATE and LDAP_RES_SEARCH_ENTRY as UNKNOWN_ERROR and LDAP_CANNOT_CANCEL when DEBUG is set. The attached patch reverts the change.
Subject: 3.0.3-ldap_result-no_error.patch
diff --git a/LDAPapi.pm b/LDAPapi.pm index 113d922..cba3b61 100644 --- a/LDAPapi.pm +++ b/LDAPapi.pm @@ -1355,8 +1355,8 @@ sub result $self->{"result"} = $result; $self->{"status"} = $status; - $self->errorize($status); if( $status == -1 || $status == 0 ) { + $self->errorize($status); return undef; }