regarding CAS Dashboard - SSO sessions

31 views
Skip to first unread message

Naresh kumar kankati

unread,
Sep 28, 2018, 8:54:38 AM9/28/18
to CAS Community
Hi All,

question regarding CAS Dashboard - SSO sessions, we are using 5.3.1. It failed to display the page with below error

ssosessions.js:232 Uncaught TypeError: Cannot read property 'length' of undefined
at render (ssosessions.js:232)
at jquery.dataTables.min.js:18
at Object.b.fnGetData (jquery.dataTables.min.js:12)
at B (jquery.dataTables.min.js:17)
at Ga (jquery.dataTables.min.js:24)
at M (jquery.dataTables.min.js:16)
at jquery.dataTables.min.js:48
at i (jquery.dataTables.min.js:35)
at Object.success (jquery.dataTables.min.js:35)
at u (jquery.js:3268)
render @ ssosessions.js:232
(anonymous) @ jquery.dataTables.min.js:18
b.fnGetData @ jquery.dataTables.min.js:12
B @ jquery.dataTables.min.js:17
Ga @ jquery.dataTables.min.js:24
M @ jquery.dataTables.min.js:16
(anonymous) @ jquery.dataTables.min.js:48
i @ jquery.dataTables.min.js:35
success @ jquery.dataTables.min.js:35
u @ jquery.js:3268
fireWith @ jquery.js:3398
k @ jquery.js:9305
(anonymous) @ jquery.js:9548
load (async)
send @ jquery.js:9567
ajax @ jquery.js:9206
sa @ jquery.dataTables.min.js:36
ga @ jquery.dataTables.min.js:48
e @ jquery.dataTables.min.js:92
(anonymous) @ jquery.dataTables.min.js:92
each @ jquery.js:354
each @ jquery.js:189
m @ jquery.dataTables.min.js:82
h.fn.DataTable @ jquery.dataTables.min.js:164
createDataTable @ ssosessions.js:182
init @ ssosessions.js:342
(anonymous) @ ssosessions.js:343
(anonymous) @ ssosessions.js:351

we compared the json returned from cas server it is different.
our cas server returns like below
{
"@class": "java.util.HashMap",
"totalUsageCount": [
"java.lang.Long",
17
],
"activeSsoSessions": [
"java.util.ArrayList",
[
{
"@class": "java.util.HashMap",
"authentication_date": [
"java.time.ZonedDateTime",
1538058609.391
],
"authentication_date_formatted": "2018-09-27T10:30:09Z",
"authentication_attributes": {
"@class": "java.util.LinkedHashMap",
but cas server web app in heroko returns different json format
{
"totalUsageCount": 1,
"activeSsoSessions": [
{
"authentication_date": 1538057962.539,
"authentication_date_formatted": "2018-09-27T14:19:22Z",
"authentication_attributes": {
"credentialType": "UsernamePasswordCredential",
"authenticationMethod": "AcceptUsersAuthenticationHandler",
"successfulAuthenticationHandlers": [
"AcceptUsersAuthenticationHandler"
]
},

Thanks
Naresh
Reply all
Reply to author
Forward
0 new messages