This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new d8e48a6fde AMBARI-26529 Fix Kerberos admin session ajax failure (#4039)
d8e48a6fde is described below
commit d8e48a6fded26f5dde47ab66e70593914ee8c9ef
Author: Shubham Sharma <[email protected]>
AuthorDate: Tue Aug 12 01:32:17 2025 -0400
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
---
ambari-web/app/utils/ajax/ajax.js | 3 ++-
.../test/controllers/main/admin/kerberos/step2_controller_test.js | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/utils/ajax/ajax.js
b/ambari-web/app/utils/ajax/ajax.js
index 1c195b9e3d..e932c3d64b 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -37,7 +37,8 @@ var urls = {
'mock': '/data/wizard/deploy/poll_1.json',
'format': function (data) {
return {
- data: JSON.stringify(data.data)
+ data: JSON.stringify(data.data),
+ dataType: 'text'
};
}
},
diff --git
a/ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js
b/ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js
index fd782c7b9d..169663e84f 100644
--- a/ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js
+++ b/ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js
@@ -838,6 +838,7 @@ describe('App.KerberosWizardStep2Controller', function() {
expect(args[0]).to.be.eql({
name: 'common.cluster.update',
sender: controller,
+ dataType: 'text',
data: {
clusterName: 'c1',
data: [{
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]