From 1661a25cdf285adf056e037f627a671cea5c3b83 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 04 Sep 2007 23:02:20 +0000
Subject: [PATCH] Fix bug which was preventing detailed error reporting in dsconfig when a managed object cannot be decoded properly (due to missing properties, invalid syntax, etc).
---
opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java b/opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java
index 63df154..fb4f43a 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java
@@ -228,7 +228,7 @@
} catch (ManagedObjectDecodingException e) {
ufn = path.getManagedObjectDefinition().getUserFriendlyName();
Message msg = ERR_DSCFG_ERROR_GET_PARENT_MODE.get(ufn);
- throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg);
+ throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg, e);
} catch (CommunicationException e) {
Message msg = ERR_DSCFG_ERROR_LIST_CE.get(ufn, e.getMessage());
throw new ClientException(LDAPResultCode.CLIENT_SIDE_SERVER_DOWN, msg);
@@ -270,7 +270,7 @@
// FIXME: just output this as a warnings (incl. the name) but
// continue.
Message msg = ERR_DSCFG_ERROR_LIST_MODE.get(ufn);
- throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg);
+ throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg, e);
} catch (AuthorizationException e) {
Message msg = ERR_DSCFG_ERROR_LIST_AUTHZ.get(ufn);
throw new ClientException(LDAPResultCode.INSUFFICIENT_ACCESS_RIGHTS,
@@ -303,7 +303,7 @@
throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg);
} catch (ManagedObjectDecodingException e) {
Message msg = ERR_DSCFG_ERROR_LIST_MODE.get(ufn);
- throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg);
+ throw new ClientException(LDAPResultCode.OPERATIONS_ERROR, msg, e);
} catch (ConcurrentModificationException e) {
Message msg = ERR_DSCFG_ERROR_LIST_CME.get(ufn);
throw new ClientException(LDAPResultCode.CONSTRAINT_VIOLATION, msg);
--
Gitblit v1.10.0