Issue Details (XML | Word | Printable)

Key: DIRSERVER-242
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Ldif parser does not accept comments

Created: 28/Jan/05 08:16 AM   Updated: 24/Jun/06 08:44 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Environment: Not relevant

Resolution Date: 12/Aug/05 01:31 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu made changes - 29/Jan/05 01:09 AM
Field Original Value New Value
Fix Version/s 0.8.1 [ 11066 ]
Alex Karasulu made changes - 12/Aug/05 12:35 PM
Status Open [ 1 ] In Progress [ 3 ]
Alex Karasulu made changes - 12/Aug/05 01:31 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Alex Karasulu made changes - 07/Feb/06 02:41 PM
Affects Version/s 0.8.0 [ 11000 ]
Key DIRLDAP-24 DIRSERVER-242
Fix Version/s pre-1.0 [ 12310782 ]
Fix Version/s 0.9.2 [ 12310220 ]
Affects Version/s pre-1.0 [ 12310782 ]
Component/s ldap [ 12310715 ]
Component/s Common [ 11085 ]
Project Directory LDAP [ 10514 ] ApacheDS [ 12310260 ]
Emmanuel Lecharny made changes - 24/Jun/06 08:44 PM
Status Resolved [ 5 ] Closed [ 6 ]