directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Resolved: (DIRLDAP-24) Ldif parser does not accept comments
Date Fri, 12 Aug 2005 04:31:54 GMT
     [ http://issues.apache.org/jira/browse/DIRLDAP-24?page=all ]
     
Alex Karasulu resolved DIRLDAP-24:
----------------------------------

    Resolution: Fixed

Committed revision 232201 here:

http://svn.apache.org/viewcvs.cgi?rev=232201&view=rev


> Ldif parser does not accept comments
> ------------------------------------
>
>          Key: DIRLDAP-24
>          URL: http://issues.apache.org/jira/browse/DIRLDAP-24
>      Project: Directory LDAP
>         Type: Bug
>   Components: Common
>     Versions: 0.8.0
>  Environment: Not relevant
>     Reporter: Emmanuel Lecharny
>     Assignee: Alex Karasulu
>      Fix For: 0.9.2

>
> LdifParserImpl class does not accept comments, as defined by RFC 2848, p.6, par. 3 :
> 	    try {
> 	        LdifParserImpl p = new LdifParserImpl();
> 	        LdifEntry entry = p.parse("#comment");
> 	        
> 	        System.out.println(entry.toString());
> 	    } catch (Exception e) {
> 	        System.out.println(e.getMessage());
> 	    }
> throws a LdapNamingException, with this message :
> org.apache.ldap.common.exception.LdapNamingException: Line 0 [# empty file] does not
correspond to an LDIF entry attribute value pair.
> {# empty file}
> I marked it Major even if a workaround could be to strip comments from ldif files, as
many of them contain comments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message