Description of problem: ======================== User 'admin' is not authorized to access 'Cloud Tenant' record id '58013000000000000' [cloud_subnet/create] Version-Release number of selected component (if applicable): ============================================================== OSPD 11 CFME 5.8.0.13 How reproducible: ================= On one setup Steps to Reproduce: =================== 1. As admin navigate to: Networks --> Networks Create a network for admin tenant 2. Navigate to: Networks --> Subnets Create a subnet on the network you have created Actual results: =============== Unexpected error encountered Error text: User 'admin' is not authorized to access 'Cloud Tenant' record id '58013000000000000' [cloud_subnet/create] Expected results: ================= Subnet created successfully
It looks like this is caused by large region numbers: the backend code is getting the ID properly: {"available_tenants":[{"name":"admin","id":58015000000000001}]} But it gets rendered imprecisely, as Angular does not correctly render such large numbers: <option label="admin" value="number:58015000000000000">admin</option> Either large region IDs need to be prevented, or all IDs need to be parsed as strings.
https://github.com/ManageIQ/manageiq-ui-classic/pull/1406
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/ce6492d548fd94d6213fbff710074cb3b1fd45ea commit ce6492d548fd94d6213fbff710074cb3b1fd45ea Author: Tzu-Mainn Chen <tzumainn> AuthorDate: Mon May 22 19:33:19 2017 +0200 Commit: Tzu-Mainn Chen <tzumainn> CommitDate: Mon May 22 19:33:19 2017 +0200 Ensure cloud tenant ID is read as string for cloud subnets If the region ID is large enough, the cloud tenant ID is not parseable as a string by angular. https://bugzilla.redhat.com/show_bug.cgi?id=1448888 app/controllers/cloud_subnet_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Verified ======== 5.9.0.16