Issue Details (XML | Word | Printable)

Key: DIRSERVER-199
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
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 file could have multi-lines atrribute values

Created: 28/Jan/05 08:36 AM   Updated: 24/Jun/06 08:58 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 relevent

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


 Description  « Hide
RFC 2849 states that an attribute value may be folded.

LdifParserImpl class does not accept it :

try {
LdifParserImpl p = new LdifParserImpl();

LdifEntry entry = p.parse("attr: this is a\n test");
} catch (Exception e) {
System.out.println(e.getMessage());
}

throws a LdapNamingException :
org.apache.ldap.common.exception.LdapNamingException: Line 0 [ test] does not correspond to an LDIF entry attribute value pair.
{attr: this is a
 test}

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu added a comment - 29/Jan/05 01:13 AM
Let's fix this immediately in 0.8.1. Will merge back into trunk.

Alex Karasulu added a comment - 12/Aug/05 01:04 PM
This was fixed a long time ago as can be seen by the contents of the following test case which seems to pass.

http://svn.apache.org/viewcvs.cgi/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/ldif/LdifParserImplTest.java?rev=219580&view=markup

I must have added this test case an not closed this issue.

Emmanuel Lecharny added a comment - 24/Jun/06 08:58 PM
Fixed with the rewrote of LdifParser