LDAPDN.explodeDN() doesn't split RDNs separated by ';' (semicolons)

NEW
Assigned to

Status

Directory
LDAP Java SDK
15 years ago
14 years ago

People

(Reporter: Sebastien Guillemin, Assigned: Erhyuan Tsai)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126

The LDAPDN.explodeDN() method doesn't split RDNs separated by ';' (semicolons).
RFC1485 specifies that "Semicolon (";") may be used as an alternate separator".
(even if it is not encouraged)

The source-code seems to confirm that, currently, only ',' (comas) are used to
explode the DN.

Reproducible: Always

Steps to Reproduce:
1. myDN is a string that contains a DN using ';' as an RDN separator
2. LDAPDN.explodeDN(myDN)

Actual Results:  
the whole DN (unexploded)

Expected Results:  
exploded RDNs array

In the java source file netscape/ldap/util/DN.java, in the DN(String)
constructor, the condition :

if (buffer.charAt(i) == ',')

should, unless I'm mistaken, be replaced with something like :

if ((buffer.charAt(i) == ',') || (buffer.charAt(i) == ';'))

Comment 1

15 years ago
This does sound like a bug. Reassigned to Miodrag.
Assignee: mcs → miodrag

Comment 2

15 years ago
Spam for bug 129472
QA Contact: nobody → nobody

Comment 3

14 years ago
Reassign LDAP JDK bugs owned by Miodrag (miodrag@formerly-netscape.com.tld) to
E-Y (erhyuan@pacbell.net)
Assignee: miodrag → erhyuan
You need to log in before you can comment on or make changes to this bug.