directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRAPI-226) Injecting non pure ASCII values into a HR attribute read from a LDIF does not work
Date Fri, 13 Mar 2015 19:19:38 GMT

     [ https://issues.apache.org/jira/browse/DIRAPI-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRAPI-226.
--------------------------------------
    Resolution: Fixed

Fixed with http://svn.apache.org/r1666520

> Injecting non pure ASCII values into a HR attribute read from a LDIF does not work
> ----------------------------------------------------------------------------------
>
>                 Key: DIRAPI-226
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-226
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M28
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.0.0-M29
>
>
> If we try to parse such an entry :
> {code}
> dn:: Y249RW1tYW51ZWwgTMOpY2hhcm55LCBkYz1leG1hcGxlLCBkYz1jb20=
> ObjectClass: top
> objectClass: person
> cn:: RW1tYW51ZWwgTMOpY2hhcm55
> sn: elecharny
> {code}
> simply fail when we use a Schema aware {{LdifReader}}. At some point, the cn AttributeType
value is considered as binary, and the {{Attribute.add( byte[] )}} method refuse to inject
the value.
> Not sure if it's not a problem with the {{LdifParser}} which does not detect that the
cn value is a String and not a byte[].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message