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 2014/02/22 08:42:20 UTC

[jira] [Resolved] (DIRAPI-175) LdifReader should handle empty entries

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

Emmanuel Lecharny resolved DIRAPI-175.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0-M21

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

We now accept entries like :

version:   1
dn: cn=test1

dn: cn=test2

dn: cn=test3


> LdifReader should handle empty entries
> --------------------------------------
>
>                 Key: DIRAPI-175
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-175
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M11
>            Reporter: Raphaƫl Ouazana
>             Fix For: 1.0.0-M21
>
>
> A simple LDIF file containing 3 entries is rejected by LDIFParser:
> dn: uid=uniqueId, dc=domain
> dn: uid=uniqueId2, dc=domain
> dn: uid=uniqueId3, dc=domain
> I don't see any issue in this LDIF. Parser should return 3 entries with no attribute.
> With M11, the error is the following:
> ERROR - ERR_12058_UNKNOWN_ENTRY_TYPE Unknown entry type
> ERROR - ERR_12058_UNKNOWN_ENTRY_TYPE Unknown entry type
> ERROR - ERR_12069 Cannot parse the ldif buffer : ERR_12059_UNKNOWN_ENTRY Unknown entry
> ERROR - ERR_12069 Cannot parse the ldif buffer : ERR_12059_UNKNOWN_ENTRY Unknown entry
> If I add an attribute to each entry, I get no more error.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)