You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2015/03/13 20:19:38 UTC

[jira] [Resolved] (DIRAPI-226) Injecting non pure ASCII values into a HR attribute read from a LDIF does not work

     [ 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)