[ 
https://issues.apache.org/jira/browse/DIRSHARED-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478399#comment-13478399
 ] 

Allen Zhao commented on DIRSHARED-139:
--------------------------------------

I understand the scenario. I tested other LDAP api, seems they could handle 
this situation. 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() in both entry and attribute, it try to convert the value to 
string if the value is HR. Not sure this is doable in your code.

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: https://issues.apache.org/jira/browse/DIRSHARED-139
>             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 = lr.next();
>     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: http://www.atlassian.com/software/jira

Reply via email to