Uh oh!
There was an error while loading. Please reload this page.
Fix: Listing projects comprising of only the user's on listAll=true - #4469
Conversation
Pearl1594
commented
Nov 13, 2020
@blueorangutan package |
blueorangutan
commented
Nov 13, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 13, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2379 |
c86264d to
ba11bdfComparePearl1594
commented
Nov 13, 2020
@blueorangutan package |
blueorangutan
commented
Nov 13, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 13, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2380 |
| } | ||
| if (userId != null && (accountId == null && domainId == null)) { | ||
| if (userId != null && (accountId == null || domainId == null)) { |
There was a problem hiding this comment.
why should they both be specified? user + either implies the other
There was a problem hiding this comment.
discussed off-line with @Pearl1594 . no functional need but bugs may arise when not implemented this way
Pearl1594
commented
Nov 13, 2020
@blueorangutan test |
blueorangutan
commented
Nov 13, 2020
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Nov 13, 2020
Trillian test result (tid-3167)
|
harikrishna-patnala
left a comment
There was a problem hiding this comment.
LGTM, test failure is not related to these changes.
DaanHoogland
commented
Nov 16, 2020
travis has more errors than expected, retrying |
DaanHoogland
commented
Nov 16, 2020
this and #4276 look like they are related!? |
| if (userId != null && (accountId == null && domainId == null)) { | ||
| if (userId != null && (accountId == null || domainId == null)) { | ||
| throw new InvalidParameterValueException("Account ID and Domain ID must be specified with userID"); |
There was a problem hiding this comment.
@Pearl1594 update this msg to reflect the change in cond.
There was a problem hiding this comment.
It already did, as far as I can tell, neither accountId nor domainId may be null so both must be specified.
There was a problem hiding this comment.
am i missing anything here @DaanHoogland , the cond. is OR and the msg says both (account id and domain id).
There was a problem hiding this comment.
throw an exception when either is null, would mean both may not be null. The message was already the (not yet implemented) new condition.
DaanHoogland
commented
Nov 16, 2020
no test effort shows in the comments or description @Pearl1594 . Can you add or chase some? |
Pearl1594
commented
Nov 16, 2020
@DaanHoogland Tests performed were listed in the following PR: #4316 |
DaanHoogland
commented
Nov 16, 2020
So are the same |
Pearl1594
commented
Nov 16, 2020
yes @DaanHoogland |
weizhouapache
commented
Nov 16, 2020
what about 4.14 ? |
DaanHoogland
commented
Nov 16, 2020
@weizhouapache this fixes a regression caused in a 4.15 commit on master. the original was also targeted on 4.15. not sure if it is applicable to 4.14. If it is it must be back-ported. |
Pearl1594
commented
Nov 17, 2020
@DaanHoogland@weizhouapache this fix was specific to a feature introduced in 4.15. |
weizhouapache
commented
Nov 17, 2020
@DaanHoogland@Pearl1594 thanks, clear |
Description
server/src/main/java/com/cloud/api/query/QueryManagerImpl.javawere reverted by commit:fc05d3168f14584431a1a6b3c1f88cf04999cfaaTypes of changes