Public bug reported:
Based on implemented by angularjs framework, glance panel has such a problem:
1. Set get_metadef_namespaces to '!' in glance/policy.json
2. Log into horizon and direct to image panel
3. Horizon will accept a response like:
403 Forbidden: You are not authorized to complete get_metadef_namespaces
action. (HTTP 403)"
Due to the following code, web will be redirect to login page:
function httpRedirectLogin($q, $rootScope, $window, frameworkEvents,
toastService) {
return {
responseError: function (error) {
if (error.status === 401) {
var msg = gettext('Unauthorized. Redirecting to login');
handleRedirectMessage(msg, $rootScope, $window, frameworkEvents,
toastService);
}
if (error.status === 403) {
var msg2 = gettext('Forbidden. Redirecting to login');
handleRedirectMessage(msg2, $rootScope, $window, frameworkEvents,
toastService);
}
return $q.reject(error);
}
};
}
I don't think it make sense to log out because the policy restricts this
operation, but have no idea how to optimize. Hope anyone can give me
suggestions.
** Affects: horizon (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818659
Title:
When got a 403 response in glance panel, it will be redirect to log
out
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1818659/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs