UIMA-6071 DUCC cli ducc_status info is deficient

git-svn-id: https://svn.apache.org/repos/asf/uima/uima-ducc/trunk@1865989 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccAbstractHandler.java b/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccAbstractHandler.java
index fb13a95..130defe 100644
--- a/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccAbstractHandler.java
+++ b/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccAbstractHandler.java
@@ -188,7 +188,7 @@
 	public String toDash(String value) {
 		String retVal = "-";
 		if(value != null) {
-			if(value.length() > 0) {
+			if(value.trim().length() > 0) {
 				retVal = value;
 			}
 		}
diff --git a/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandlerClassic.java b/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandlerClassic.java
index 32f2e9d..e599d3b 100644
--- a/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandlerClassic.java
+++ b/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandlerClassic.java
@@ -1713,12 +1713,12 @@
 					// Boot Time
 					String bootTime = getTimeStamp(DuccCookies.getDateStyle(request),getPropertiesValue(properties,DuccDaemonRuntimeProperties.keyBootTime,""));
 					sb.append("<td>");
-					sb.append(bootTime);
+					sb.append(toDash(bootTime));
 					sb.append("</td>");
 					// Host IP
 					String hostIP = getPropertiesValue(properties,DuccDaemonRuntimeProperties.keyNodeIpAddress,"");
 					sb.append("<td>");
-					sb.append(hostIP);
+					sb.append(toDash(hostIP));
 					sb.append("</td>");	
 					// Host Name
 					String hostName = machineInfo.getName();
@@ -1728,7 +1728,7 @@
 					// PID
 					String pid = getPropertiesValue(properties,DuccDaemonRuntimeProperties.keyPid,"");
 					sb.append("<td>");
-					sb.append(pid);
+					sb.append(toDash(pid));
 					sb.append("</td>");
 					// Publication Size (last)
 					String publicationSizeLast = machineInfo.getPublicationSizeLast();