-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Domain - "View Templates" Button Does Not Filter #10392
Comments
@scottsignal, thanks for reporting the bug, I reproduced it in 4.19.
Yes, it seems to be an API bug. In my local environment, I created a domain (localcloud) 🐂 > list templates templatefilter=self domainid=e4484046-403c-41df-80ac-c21f760edaec filter=name,account,domain
{
"count": 6,
"template": [
{
"account": "admin",
"domain": "ROOT",
"name": "systemvm-kvm-4.19.1"
},
{
"account": "admin",
"domain": "ROOT",
"name": "systemvm-kvm-4.20.0-x86_64"
},
{
"account": "admin",
"domain": "ROOT",
"name": "Ubuntu 18.04"
},
{
"account": "d1",
"domain": "d1",
"name": "Macchinina"
},
{
"account": "system",
"domain": "ROOT",
"name": "SystemVM Template (KVM)"
},
{
"account": "system",
"domain": "ROOT",
"name": "CentOS 5.5(64-bit) no GUI (KVM)"
}
]
}
I'm not entirely sure if the |
@bernardodemarco , did you execute the API as the account in |
No, I executed it with a Root Admin account.
Yes, I agree that Root Admins expect all templates to be returned. However, I also think that Root Admins should have the ability to filter templates by domain and account. The filtering by account currently is already achieved through the API; the UI does not support it (vide #10391). The filtering by domain is not supported neither through the UI, nor through the API (vide #10392 (comment)). |
@bernardodemarco , I agree that filtering to suit the user should be possible auth permitting. I feared for a moment that we had a problem with authorisation, but root admin has god rights ;) . I do urge that the default remains the present show all behaviour. however, the redirection from the domains page may of course set a filter. |
problem
Clicking on View Templates from Domain as Root Admin does not filter correctly.
Expecting to only see 2 templates:
versions
4.19.1.3 & 4.20.0.0
GUI
KVM
The steps to reproduce the bug
What to do about it?
While this is similar to #10391, I'm not sure on this one. ListTemplates seems to require an Account Name (Unless this is actually a bug as well). Simply adding
&templatefilter=self
does not fix this.If ListTemplates really requires an account name, is this button needed?
The text was updated successfully, but these errors were encountered: