Skip to content

Apache Lucene open-source search software

SOLR-3829: Admin UI Logging events broken if schema.xml defines a catch-all dynamicField with type ignored

Stefan Matheisc734e6d0214b
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 6b4d5786333..6148df8cde9 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -463,6 +463,9 @@ Bug Fixes
* SOLR-4263: Incorrect Link from Schema-Browser to Query From for Top-Terms
(steffkes)
+* SOLR-3829: Admin UI Logging events broken if schema.xml defines a catch-all
+ dynamicField with type ignored (steffkes)
+
Other Changes
----------------------
diff --git a/solr/webapp/web/js/scripts/logging.js b/solr/webapp/web/js/scripts/logging.js
index be779b6f7ec..ec1e03c687a 100644
--- a/solr/webapp/web/js/scripts/logging.js
+++ b/solr/webapp/web/js/scripts/logging.js
@@ -318,6 +318,14 @@ var load_logging_viewer = function()
{
var doc = docs[i];
+ if( 1 === doc.time.length )
+ {
+ for( var key in doc )
+ {
+ doc[key] = doc[key][0];
+ }
+ }
+
if( !doc.trace )
{
var lines = doc.message.split( "\n" );