cloudstack/engine/schema/src/com/cloud
Daniel Carbone 000ee36224 CLOUDSTACK-9971: Bugfix/listaccounts parameter consistency (#2156)
Ran into an issue today where we passed both the "id" and "domainid" parameters into "listAccounts" and received a response despite the account id passed not belonging to the domainid passed.

Allow usage of "domainid" AND "id" in "listAccounts"
- Adding "AccountDoa::findActiveAccountById"
- Adding "AccountDaoImpl::findActiveAccountById"
- Removing seemingly pointless "listForDomain" parameter
- Updating "typeNEQ" value from "5" to "Account.ACCOUNT_TYPE_PROJECT"
  (which is "5")
- Only attempt to load domain for "path" query parameter once

"searchForAccountsInternal" input validation logic pseudo-code:
  - If "domainid" set, check immediately
  - If "id" not set:
    - and user is admin and "listall" is true
      - if "domainid" not set, use caller domain id
      - force "isrecursive" true
    - else use caller account id
  - Else if "domainid" and "name" set
    - verify existence of account and that user has access
  - Else:
    - if "domainid" not set, locate account by "id"
    - else, locate account by "id" and "domainid"
    - verify account found and caller has access rights
2018-01-03 16:59:54 +05:30
..
alert Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
capacity CLOUDSTACK-9567 Difference in the api call outputs for CAPACITY_TYPE_CPU = 1 2017-08-01 20:40:25 +02:00
certificate CLOUDSTACK-9993: Securing Agents Communications (#2239) 2017-08-28 12:15:11 +02:00
cluster/agentlb Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
configuration CLOUDSTACK-9597: Should not fetch resource count for removed entity 2016-12-06 07:37:29 +01:00
dc CLOUDSTACK-9880: Expansion of Management IP Range. (#2048) 2017-12-20 08:36:53 +00:00
domain CLOUDSTACK-8958: Fix typos introduced 2017-08-10 01:12:59 +02:00
event Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
gpu Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
host CLOUDSTACK-9595: Avoiding the deadlocks in the code (#1762) 2017-12-19 00:06:21 +05:30
hypervisor Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
network CLOUDSTACK-10189: Adding nuage VSD managed network support to CloudStack (#2360) 2017-12-28 14:55:15 +05:30
offerings CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00
projects Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
secstorage Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
service Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
storage This feature separates the snapshot creation on primary and its backing up on secondary. 2017-10-04 14:39:03 +05:30
tags CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00
upgrade CLOUDSTACK-9593: userdata: enforce data is a multiple of 4 characters (#1760) 2017-12-28 15:27:33 +05:30
usage CLOUDSTACK-9867: VM snapshot on primary storage usage metrics (#2035) 2017-12-28 14:57:10 +05:30
user CLOUDSTACK-9971: Bugfix/listaccounts parameter consistency (#2156) 2018-01-03 16:59:54 +05:30
vm CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00