Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-4102: Fix UI javascript error if canonical hostname can not be resolved

Chris M. Hostetter3dbffb580f44
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 995667364b5..a6ad99fa774 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -337,6 +337,9 @@ Bug Fixes
* SOLR-4171: CachingDirectoryFactory should not return any directories after it
has been closed. (Mark Miller)
+* SOLR-4102: Fix UI javascript error if canonical hostname can not be resolved
+ (steffkes via hossman)
+
Other Changes
----------------------
diff --git a/solr/webapp/web/js/scripts/index.js b/solr/webapp/web/js/scripts/index.js
index 91995b598ee..c58c24c0f90 100644
--- a/solr/webapp/web/js/scripts/index.js
+++ b/solr/webapp/web/js/scripts/index.js
@@ -233,7 +233,7 @@ sammy.get
var data = {
'start_time' : app.dashboard_values['jvm']['jmx']['startTime'],
- 'host' : app.dashboard_values['core']['host'],
+ 'host' : app.dashboard_values['core']['host'] || '-',
'dir_instance' : app.dashboard_values['core']['directory']['instance'],
'dir_data' : app.dashboard_values['core']['directory']['data'],
'dir_index' : app.dashboard_values['core']['directory']['index'],