Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0-M31
-
None
Description
When we try to parse a DN like "cn=
a b c
", the ComplexDnParser will remove the last space due to this code :
attributeTypeAndValue [Rdn rdn] returns [String upName = ""] { matchedProduction( "attributeTypeAndValue()" ); String type = null; UpAndNormValue value = new UpAndNormValue(); String upValue = null; } : ( ( SPACE { upName += " "; } )* type = attributeType { upName += type; } ( SPACE { upName += " "; } )* EQUALS { upName += "="; } ( SPACE { upName += " "; if ( upValue == null ) { upValue = " "; } else { upValue += " "; } } )* attributeValue[value] { try { if ( value.value instanceof String ) { Object unescapedValue = Rdn.unescapeValue( Strings.trim( (String)value.rawValue ) ); ...
Here, the trim method will remove the last space, no matter if there is a backslash before