Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 5287
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: GBARR [...] CPAN.ORG
Requestors: pierre.fayt [...] brussels.sema.slb.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.31
Fixed in: (no value)



Subject: Net::LDAP::DSML : context error
Hello, Using DSML.pm ($Id: DSML.pm,v 1.19 2003/05/07 10:53:42 chrisridd Exp $) to write entries to a DSML file, with a write_entry call for each entry, the context "directory-entries" is inserted for each entry. The writer doesn't see that it is already in the "directory-entries" context. This is caused by line 320 in DSML.pm : while (@$context and ($context->[-1] ne 'dsml' or $new eq '')) { Shouldn't it be something like : while (@$context and ($context->[-1] ne $new) and ($context->[-1] ne 'dsml' or $new eq '')) { Otherwise, the DSML file will contain a lot of "directory-entries" elements, each of them containing only one "entry" element. It seems not to be conform to the DSML DTD ... Am I right ? Or am I using the DSML writer incorrectly ? Thanks. Regards, Pierre