Pranav Saxena created CLOUDSTACK-550:
----------------------------------------
Summary: UI] Getting "TypeError: items is undefined" error in UI
when we click on Instances tab while no instances are launched yet
Key: CLOUDSTACK-550
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-550
Project: CloudStack
Issue Type: Bug
Components: UI
Reporter: Pranav Saxena
Fix For: 4.0.1
Env:
MS - RHEL 6.2
Steps:
Set up zone, cluster, hosts, stroage.. Let system VMs launch.
Before launching any instances, click on instances tab
Result:
TypeError: items is undefined error
Firebug log:
TypeError: items is undefined
success(json=Object { listvirtualmachinesresponse={...}})instan...0897247 (line
203)
resolveWith(context=Object { url=
"/client/api?command=lis...size=20&_=1354012487622", isLocal=false,
global=true, more...}, args=[Object { listvirtualmachinesresponse={...}},
"success", Object { readyState=4, responseText="{ "listvirtualmachinesresponse"
: { } }", status=200, more...}])jquery.js (line 995)
done(status=200, statusText="success", responses=Object { text="{
"listvirtualmachinesresponse" : { } }"}, headers="Server: Apache-Coyote/1...
Nov 2012 10:10:58 GMT\n")jquery.js (line 7128)
callback(_=readystatechange , isAbort=undefined)jquery.js (line 7907)
[Break On This Error]
for( i=0;i< items.length;i++){instan...0897247 (line 203)
Expected result:
Should display empty table (with 'No data to show' message)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira