When got a 403 response in glance panel, it will be redirect to log out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
horizon (Ubuntu) |
New
|
Undecided
|
mashuting |
Bug Description
Based on implemented by angularjs framework, glance panel has such a problem:
1. Set get_metadef_
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_
Due to the following code, web will be redirect to login page:
function httpRedirectLog
return {
responseE
if (error.status === 401) {
var msg = gettext(
}
if (error.status === 403) {
var msg2 = gettext('Forbidden. Redirecting to login');
}
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.
Changed in horizon (Ubuntu): | |
assignee: | nobody → mashuting (mashuting) |