Fix: Listing projects comprising of only the user's on listAll=true#4469
Fix: Listing projects comprising of only the user's on listAll=true#4469DaanHoogland merged 1 commit intoapache:masterfrom
Conversation
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2379 |
c86264d to
ba11bdf
Compare
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
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
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
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.
|
travis has more errors than expected, retrying |
|
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.
|
no test effort shows in the comments or description @Pearl1594 . Can you add or chase some? |
@DaanHoogland Tests performed were listed in the following PR: #4316 |
|
So are the same |
yes @DaanHoogland |
|
what about 4.14 ? |
|
@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. |
|
@DaanHoogland @weizhouapache this fix was specific to a feature introduced in 4.15. |
|
@DaanHoogland @Pearl1594 thanks, clear |
Description
server/src/main/java/com/cloud/api/query/QueryManagerImpl.javawere reverted by commit:fc05d3168f14584431a1a6b3c1f88cf04999cfaaTypes of changes