Issue Details (XML | Word | Printable)

Key: DIRSERVER-808
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Lecharny
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Modify the semantic of LdapDN.toString() method

Created: 29/Dec/06 10:52 PM   Updated: 15/May/07 12:19 PM
Return to search
Component/s: ldap
Affects Version/s: None
Fix Version/s: 1.5.1

Time Tracking:
Not Specified

Resolution Date: 15/May/07 12:19 PM


 Description  « Hide
The semantic of LdapDN.toString() method is really bad : it returns a normalized form of the DN. By no means this should have been the case, so I suggest to switch it back to what it should have been from the beginning :

toString() returns the user provided DN
getUpName() return the user provided DN ( for completness)
getNormName() returns the normalized form of the DN

Of course, many test cases will be impacted, but this is not something that can't be fixed in less that a few hours.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny added a comment - 20/Mar/07 10:18 PM
I have started to modify the semantic of this class, but much should be done. May be a complete review of the API and the internal of LdapDN should be done. Alex suggested that may be it could be a good idea to have two classes : LdapDN and NormalizedLdapDN, to express the different natures of a DN. It could also be good to reviex the code, which is very complicated...

Emmanuel Lecharny added a comment - 21/Apr/07 10:06 AM
the toString() method has to be mapped to getUpName() for debug purposes.

getUpName() and getNormName() methods have been created

Emmanuel Lecharny added a comment - 15/May/07 12:19 PM
The semantic has been changed

Emmanuel Lecharny added a comment - 15/May/07 12:19 PM
done