You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "andrea-janna (via GitHub)" <gi...@apache.org> on 2026/05/28 13:19:10 UTC
[I] blank page after SAML user login [cloudstack]
andrea-janna opened a new issue, #13277:
URL: https://github.com/apache/cloudstack/issues/13277
### problem
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 (<anonymous>)
at a (util.js:5:17)
at e.get (webStorage.js:20:27)
at user.js:319:45
at new Promise (<anonymous>)
at e.GetInfo (user.js:310:14)
at Array.<anonymous> (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 (<anonymous>)
at permission.js:74:29
at new Promise (<anonymous>)
at e.GenerateRoutes (permission.js:73:14)
at Array.<anonymous> (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
1. select "single sign-on" in the login page and press the login button
2.
3.
...
### What to do about it?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4564378168
@andrea-janna is the API still usable for the SSO user?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache closed issue #13277: blank page after SAML user login
URL: https://github.com/apache/cloudstack/issues/13277
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4572488350
@andrea-janna just to confirm, you're seeing this issue with all SAML users and not just with a particular user?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "andrea-janna (via GitHub)" <gi...@apache.org>.
andrea-janna commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4568135902
@DaanHoogland
In the browser DevTools I can see that after the SSO login the following api functions are called:
- listUsers
- listGuiThemes
The HTTP status code is 200 and I can see the json payload in the responses.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "Danie-THG (via GitHub)" <gi...@apache.org>.
Danie-THG commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4599737581
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "andrea-janna (via GitHub)" <gi...@apache.org>.
andrea-janna commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4572614141
@shwstppr
Yes I have this issue for the SAML users that existed before upgrading CloudStack and also for SAML users created after the upgrade.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "zg-kim-robinson (via GitHub)" <gi...@apache.org>.
zg-kim-robinson commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4677617786
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...
```javascript
<script>
(function() {
try {
if (window.localStorage) {
const orig = localStorage.setItem;
localStorage.setItem = function(k, v) {
orig.apply(this, [k, v === undefined && k === 'primate__MS_ID' ? '""' : v]);
}
;
if (localStorage.getItem('primate__MS_ID') === 'undefined') {
localStorage.setItem('primate__MS_ID', '""');
}
}
} catch (e) {}
}
)();
</script>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "andrea-janna (via GitHub)" <gi...@apache.org>.
andrea-janna commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4567398980
@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".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] blank page after SAML user login [cloudstack]
Posted by "jmgsky (via GitHub)" <gi...@apache.org>.
jmgsky commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4682851205
We upgraded yesterday and faced the same problem. I chased down the issue, fixed it, and opened a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org