Closed Bug 183959 Opened 23 years ago Closed 7 years ago

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

Categories

(Directory Graveyard :: LDAP Java SDK, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mrlem, Assigned: erhyuan)

Details

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) == ';'))
This does sound like a bug. Reassigned to Miodrag.
Assignee: mcs → miodrag
Spam for bug 129472
QA Contact: nobody → nobody
Reassign LDAP JDK bugs owned by Miodrag (miodrag@formerly-netscape.com.tld) to E-Y (erhyuan@pacbell.net)
Assignee: miodrag → erhyuan
Not activity for at least 6 years, closing.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.