You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from version 4.22.0.1 to version 4.22.1.0 when a user authenticates via single sign-on the browser screen stays white but a blue progress bar at the top.
Users that don't have SSO enabled can login normally.
I tested both Chrome and Firefox on Windows.
The Chrome console reports the following 2 errors:
user.js:458 SyntaxError: "undefined" is not valid JSON
at JSON.parse ()
at a (util.js:5:17)
at e.get (webStorage.js:20:27)
at user.js:319:45
at new Promise ()
at e.GetInfo (user.js:310:14)
at Array. (vuex.esm-browser.js:305:23)
at e.dispatch (vuex.esm-browser.js:1031:13)
at e.dispatch (vuex.esm-browser.js:914:21)
at permission.js:104:12
Uncaught (in promise) TypeError: Cannot convert undefined or null to object
at Object.keys ()
at permission.js:74:29
at new Promise ()
at e.GenerateRoutes (permission.js:73:14)
at Array. (vuex.esm-browser.js:305:23)
at e.dispatch (vuex.esm-browser.js:1031:13)
at e.dispatch (vuex.esm-browser.js:914:21)
at permission.js:106:19
versions
Cloudstack 4.22.1.0 on Rocky Linux 10.
The steps to reproduce the bug
select "single sign-on" in the login page and press the login button
@DaanHoogland
I'm not sure if I understood you question but I think the answer is yes, the API is usable.
For instance I can use CloudMonkey authenticating with the apikey and secretkey of the SSO user and successfully execute commands like "list zones" or "list accounts".
I did a bit more digging as we have the same issue.
the local storage value primate__MS_ID: undefined seems to cause it.
for SAML login its not set correctly, if I have some breakpoints in 'GetInfo ({ commit }, switchDomain) {' I can update it to the correct value (i got from a normal login) and then the site loads fie.
I have a small workaround in place added to the base index.html file. It captures primate__MS_ID being set to undefined and instead sets it to empty string, which for SAML users is what it was being set to in 4.22.0.1. Admin/non-SAML users unaffected.
A better fix is to sort out the cookie issue but this works for now...
Activity
DaanHoogland commentedon May 28, 2026
@andrea-janna is the API still usable for the SSO user?
andrea-janna commentedon May 28, 2026
@DaanHoogland
I'm not sure if I understood you question but I think the answer is yes, the API is usable.
For instance I can use CloudMonkey authenticating with the apikey and secretkey of the SSO user and successfully execute commands like "list zones" or "list accounts".
andrea-janna commentedon May 28, 2026
@DaanHoogland
In the browser DevTools I can see that after the SSO login the following api functions are called:
The HTTP status code is 200 and I can see the json payload in the responses.
shwstppr commentedon May 29, 2026
@andrea-janna just to confirm, you're seeing this issue with all SAML users and not just with a particular user?
andrea-janna commentedon May 29, 2026
@shwstppr
Yes I have this issue for the SAML users that existed before upgrading CloudStack and also for SAML users created after the upgrade.
Danie-THG commentedon Jun 2, 2026
I did a bit more digging as we have the same issue.
the local storage value primate__MS_ID: undefined seems to cause it.
for SAML login its not set correctly, if I have some breakpoints in 'GetInfo ({ commit }, switchDomain) {' I can update it to the correct value (i got from a normal login) and then the site loads fie.
zg-kim-robinson commentedon Jun 11, 2026
I have a small workaround in place added to the base index.html file. It captures
primate__MS_IDbeing set to undefined and instead sets it to empty string, which for SAML users is what it was being set to in 4.22.0.1. Admin/non-SAML users unaffected.A better fix is to sort out the cookie issue but this works for now...
jmgsky commentedon Jun 11, 2026
We upgraded yesterday and faced the same problem. I chased down the issue, fixed it, and opened a PR.