directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Zhao (JIRA)" <>
Subject [jira] [Commented] (DIRSHARED-139) LdifReader missing attributes
Date Wed, 17 Oct 2012 21:22:05 GMT


Allen Zhao commented on DIRSHARED-139:

I understand the scenario. I tested some other LDAP apis, seems they could handle this scenario.
I noticed that, internally, they convert the whole attribute to binary (if any value is binary),
but when "print out", e.g. toString() or String getValue() at both entry and attribute level,
it try to convert the value to string if the value is HR. Not sure this is doable in your

BTW: I am very interesting the SchemaAware LDIFReader. But I could not find it in your API
doc. If you have it, please let me know.

Thanks a lot,


> LdifReader missing attributes
> -----------------------------
>                 Key: DIRSHARED-139
>                 URL:
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M12
>         Environment: Linux
>            Reporter: Allen Zhao
> $ cat t.ldif
> dn: cn=DeviceTypes,cn=SDT,cn=prod_81,o=myconfiguration
> cn: DeviceTypes
> javaClassName: java.lang.String
> myconfigstringvalue: P:Phone (except BlackBerry)
> myconfigstringvalue:: WjpCbGFja0JlcnJ5w4LCrg==
> myconfigstringvalue: 3:Internet only device
> objectClass: top
> objectClass: javaobject
> objectClass: myconfigstringvaluedobject
> Code:
> LdifReader lr = new LdifReader(fileName);
> while (lr.hasNext()) {
>     LdifEntry e =;
>     System.out.println(e.toString());
> }
> The attribute "myconfigstringvalue:: WjpCbGFja0JlcnJ5w4LCrg==" missed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message