Apache Lucene open-source search software
SOLR-4754: our config parser seems to have been changed to return "" when it used to return null on an empty value and broke default host detection
Mark Robert Miller2db8c9aa1b0c
diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkController.java b/solr/core/src/java/org/apache/solr/cloud/ZkController.javaindex 0eb0a4d7784..922b486aae4 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkController.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkController.java@@ -405,7 +405,7 @@ public final class ZkController {// input can be null, host, or url_prefix://hostprivate String getHostAddress(String host) throws IOException {- if (host == null) {+ if (host == null || host.length() == 0) {String hostaddress;try {hostaddress = InetAddress.getLocalHost().getHostAddress();