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 made changes - 29/Jan/05 01:13 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 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.

Alex Karasulu made changes - 12/Aug/05 01:04 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Alex Karasulu made changes - 07/Feb/06 02:41 PM
Affects Version/s pre-1.0 [ 12310782 ]
Project Directory LDAP [ 10514 ] ApacheDS [ 12310260 ]
Fix Version/s 0.9.2 [ 12310220 ]
Component/s ldap [ 12310715 ]
Affects Version/s 0.8.0 [ 11000 ]
Component/s Common [ 11085 ]
Fix Version/s pre-1.0 [ 12310782 ]
Key DIRLDAP-26 DIRSERVER-199
Emmanuel Lecharny added a comment - 24/Jun/06 08:58 PM
Fixed with the rewrote of LdifParser

Emmanuel Lecharny made changes - 24/Jun/06 08:58 PM
Status Resolved [ 5 ] Closed [ 6 ]