-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make isAccountAllowedToCreateOfferingsWithTags API id parameter required #10338
base: 4.20
Are you sure you want to change the base?
Make isAccountAllowedToCreateOfferingsWithTags API id parameter required #10338
Conversation
If it was impossible to execute the query before without |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10338 +/- ##
============================================
- Coverage 16.13% 16.00% -0.14%
- Complexity 12972 13062 +90
============================================
Files 5639 5644 +5
Lines 494297 494915 +618
Branches 59908 59960 +52
============================================
- Hits 79773 79188 -585
- Misses 405698 406890 +1192
- Partials 8826 8837 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@DaanHoogland, yes, previously, it was impossible to execute the API without an When the API's service layer method is executed, the flow tries to retrieve the account with the specified cloudstack/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java Lines 8074 to 8076 in 2ef1613
However, the cloudstack/server/src/main/java/com/cloud/user/AccountManagerImpl.java Lines 2488 to 2491 in 2ef1613
Therefore, when the method is executed specifying |
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.
clgtm
@blueorangutan package |
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12367 |
Description
This PR makes the
id
parameter fromisAccountAllowedToCreateOfferingsWithTags
api required to prevent a NullPointerException when trying to execute the command without anid
.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
I've created a test environment with a CloudStack setup. When I tried to execute the command without the
id
parameter, the following exception was thrown:Then I built and applied the updated packages to my environment. After that, I tried to force the same error to ensure my fix was working. The response shown was now the message:
Missing required parameters: id