You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Rohit Yadav <ro...@citrix.com> on 2012/12/19 02:26:29 UTC
Using uuids instead of ids for querying
The UI currently fails for few of the APIs which are hard coded to use special numbers like listRouters with projectId=-1. Such values are hardcoded in the implementation. Suggestions on how to fix this?
Regards.
Temp. fix;
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -311,7 +311,6 @@
$.ajax({
url: createURL('listRouters'),
data: {
- projectid: -1,
page: 1,
pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we nee
},
@@ -1526,7 +1525,7 @@
var items = [];
//"listNetworks&projectid=-1": list guest networks under all projects (no matter who the owner is)
$.ajax({
- url: createURL("listNetworks&projectid=-1&trafficType=Guest&zoneId=" + selectedZoneObj.id + "&physicalnetworkid=" + selectedPhysicalNetworkObj.id + "&page=" + args.pa
+ url: createURL("listNetworks&trafficType=Guest&zoneId=" + selectedZoneObj.id + "&physicalnetworkid=" + selectedPhysicalNetworkObj.id + "&page=" + args.page + "&pagesi
dataType: "json",
async: false,
success: function(json) {
@@ -1870,9 +1869,7 @@