diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index df5559f671f..52e23367208 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -175,7 +175,9 @@ Bug Fixes * SOLR-8715: Admin UI's Schema screen now works for fields with stored=false and some content indexed (Alexandre Rafalovitch) -* SOLR-8911: In Admin UI, enable scrolling for overflowing Versions and JVM property values +* SOLR-8911: In Admin UI, enable scrolling for overflowing Versions and JVM property values (Alexandre Rafalovitch) + +* SOLR-9002: Admin UI now correctly displays json and text files in the collection/Files screen (Upayavira, Alexandre Rafalovitch) Optimizations ---------------------- diff --git a/solr/webapp/web/js/angular/controllers/files.js b/solr/webapp/web/js/angular/controllers/files.js index 1cb9e5cd55e..00ea4b19ff7 100644 --- a/solr/webapp/web/js/angular/controllers/files.js +++ b/solr/webapp/web/js/angular/controllers/files.js @@ -16,7 +16,7 @@ */ var contentTypeMap = { xml : 'text/xml', html : 'text/html', js : 'text/javascript', json : 'application/json', 'css' : 'text/css' }; -var languages = {js: "javascript", xml:"xml", xsl:"xml", vm: "xml", html: "xml", json: "text", css: "css"}; +var languages = {js: "javascript", xml:"xml", xsl:"xml", vm: "xml", html: "xml", json: "json", css: "css"}; solrAdminApp.controller('FilesController', function($scope, $rootScope, $routeParams, $location, Files, Constants) { @@ -82,10 +82,10 @@ solrAdminApp.controller('FilesController', Files.get({core: $routeParams.core, file: $scope.file, contentType: contentType}, function(data) { $scope.content = data.data; $scope.url = $scope.baseurl + data.config.url + "?" + $.param(data.config.params); - if (contentType.indexOf("text/plain") && data.data.indexOf("=0) || data.data.indexOf("