-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix: Listing projects comprising of only the user's on listAll=true #4469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,7 +116,7 @@ public long getEntityOwnerId() { | |
| throw new InvalidParameterValueException("Account name and domain id must be specified together"); | ||
| } | ||
|
|
||
| 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"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pearl1594 update this msg to reflect the change in cond.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It already did, as far as I can tell, neither accountId nor domainId may be null so both must be specified.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. am i missing anything here @DaanHoogland , the cond. is OR and the msg says both (account id and domain id).
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. throw an exception when either is null, would mean both may not be null. The message was already the (not yet implemented) new condition.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmm , correct @DaanHoogland |
||
| } | ||
| if (accountName != null) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why should they both be specified? user + either implies the other
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed off-line with @Pearl1594 . no functional need but bugs may arise when not implemented this way