directory-dev mailing list archives

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

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

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
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,

Allen


                
> 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

Mime
View raw message