Skip to content

api call listRoles name filter not working as expected #7362

Description

@sbrueseke
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.18.0.0
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

When using parameter name with api call listRoles it lists all roles which have the value of name in the actual name instead of the roles with the exact value of name. Parameter keyword should be used to filter when wanting to find all roles where the value is part of the name.

STEPS TO REPRODUCE
Create a new role with name "New Domain Admin".
Do the following api call: /client/api/?command=listRoles&name=Domain%20Admin&response=json
EXPECTED RESULTS
You should only get 1 result back. The result should be the default "Domain Admin" role.
ACTUAL RESULTS
You get 2 results back. The default "Domain Admin" and the new created "New Domain Admin".

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions