Skip to content

Commit 89abaa8

Browse files
fxprunayrejosegar74
authored andcommitted
CSW / Test interface does not load samples (#4378)
``` lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:126 SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at tc (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:29) at $b (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:101) at lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:101 at p (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:19) at cd (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:101) at c (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:103) at lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:139 at m.$eval (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4bf7:153) at m.$digest (lib.js?v=322d05a25e1afb2d5f2af1a6c9e480a7066e4 ``` Probably related to Spring MVC update ?
1 parent b2b2259 commit 89abaa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web-ui/src/main/resources/catalog/js/admin/CSWTestController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565

6666
$scope.$watch('currentTestId', function() {
6767
if ($scope.currentTestId !== null) {
68-
$http.get('../../xml/csw/test/' + $scope.currentTestId + '.xml')
68+
$http.get('../../xml/csw/test/' + $scope.currentTestId + '.xml', {headers: {
69+
Accept: 'application/xml'
70+
}})
6971
.success(function(data) {
7072
$scope.currentTest = data;
7173
$scope.runCSWRequest();

0 commit comments

Comments
 (0)