Skip to content

Commit d8e48a6

Browse files
authored
AMBARI-26529 Fix Kerberos admin session ajax failure (#4039)
* AMBARI-26529 Fix Kerberos admin session ajax failure and avoid unnecessary KERBEROS service deletion * AMBARI-26529 Added test case and removed Kerberos service check * Fixed spaces
1 parent 9beddd7 commit d8e48a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ambari-web/app/utils/ajax/ajax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ var urls = {
3737
'mock': '/data/wizard/deploy/poll_1.json',
3838
'format': function (data) {
3939
return {
40-
data: JSON.stringify(data.data)
40+
data: JSON.stringify(data.data),
41+
dataType: 'text'
4142
};
4243
}
4344
},

ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ describe('App.KerberosWizardStep2Controller', function() {
838838
expect(args[0]).to.be.eql({
839839
name: 'common.cluster.update',
840840
sender: controller,
841+
dataType: 'text',
841842
data: {
842843
clusterName: 'c1',
843844
data: [{

0 commit comments

Comments
 (0)