OpenNTF/org.openntf.domino

Name.getCanonical() does not format correct

perlausten opened this issue · 1 comments

There’s a bug in the Name class that formats as canonical. This code example compares ODA and IBM:

String adName = "CN=Name/OU=Org1/OU=Org2/DC=dc1/DC=dc2/DC=country";
System.out.println("ODA: " + Factory.getSession().createName(adName).getCanonical());
try {
	System.out.println("IBM: " + JSFUtil.getSession().createName(adName).getCanonical());
} catch (NotesException e) {
	e.printStackTrace();
}

The result is:

ODA: CN=Name/OU=Org1/OU=Org2/C=dc1
IBM: CN=Name/OU=Org1/OU=Org2/DC=dc1/DC=dc2/DC=country

I am using ODA 4.4

The whole Name handling bit should really be burned down, but, in the mean time, I added support for DC parts in names in the develop branch. It should be added in 10.0.1.