From d79e4f9500bbdd758d2c33128a2d58a3d3602fa7 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 4 Apr 2014 11:52:37 -0400 Subject: Added general configuration page. A new page has been added to manage general TPS configuration properties. The properties are read-only by default. In edit mode the property name will become a link which will show a dialog to edit the property value. The config REST service has been updated to use PATCH for update operation and handle possible null collection of properties. Fixed a bug in TableItem.reset() where the code didn't clear the table cell properly. Fixed a bug in ConfigDatabase.getProperties() where the code didn't handle null property key properly. Ticket #654 --- .../src/com/netscape/cmstools/tps/config/ConfigCLI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'base/java-tools/src/com') diff --git a/base/java-tools/src/com/netscape/cmstools/tps/config/ConfigCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/config/ConfigCLI.java index 584cf81af..f7b53ed63 100644 --- a/base/java-tools/src/com/netscape/cmstools/tps/config/ConfigCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/tps/config/ConfigCLI.java @@ -55,9 +55,11 @@ public class ConfigCLI extends CLI { System.out.println(" Properties:"); Map properties = configData.getProperties(); - for (String name : properties.keySet()) { - String value = properties.get(name); - System.out.println(" " + name + ": " + value); + if (properties != null) { + for (String name : properties.keySet()) { + String value = properties.get(name); + System.out.println(" " + name + ": " + value); + } } Link link = configData.getLink(); -- cgit