From 5fbd7fb2f9aec0dad7165495bd532e44307c243b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 03 Apr 2007 23:08:45 +0000
Subject: [PATCH] Fix a bug in the MakeLDIF tool in which it is possible to attempt to access a slot beyond the end of the last name array when processing gets to the point at which it reaches the end of the first and last name lists simultaneously. In that case, the first name counter was being reset but the last name counter was not.
---
opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java b/opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java
index f183cd9..a7d0cc6 100644
--- a/opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java
+++ b/opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java
@@ -346,7 +346,7 @@
{
int msgID = MSGID_MAKELDIF_ERROR_WRITING_LDIF;
String message = getMessage(msgID, ldifFile.getValue(),
- String.valueOf(e));
+ stackTraceToSingleLineString(e));
System.err.println(wrapText(message, MAX_LINE_WIDTH));
return 1;
}
@@ -402,7 +402,7 @@
{
int msgID = MSGID_MAKELDIF_CANNOT_WRITE_ENTRY;
String message = getMessage(msgID, String.valueOf(entry.getDN()),
- String.valueOf(e));
+ stackTraceToSingleLineString(e));
throw new MakeLDIFException(msgID, message, e);
}
}
--
Gitblit v1.10.0