api,ui: fix empty source cidr value for firewall rule#10208
api,ui: fix empty source cidr value for firewall rule#10208DaanHoogland merged 6 commits intoapache:4.19from
Conversation
Fixes apache#10002 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
af70946 to
4762115
Compare
|
@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build failed: ✖️ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10208 +/- ##
============================================
+ Coverage 15.13% 15.14% +0.01%
- Complexity 11274 11285 +11
============================================
Files 5408 5408
Lines 473974 473769 -205
Branches 57813 57813
============================================
+ Hits 71730 71768 +38
+ Misses 394227 393982 -245
- Partials 8017 8019 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
abh1sar
left a comment
There was a problem hiding this comment.
LGTM.
p.s. what would be the behaviour if the same was done using api (Passing empty string cidr)? If it is the same, can we sanitise the input or throw some error from the api?
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@abh1sar API was allowing empty cidr as it takes List as input, I've added a check @blueorangutan package |
|
@shwstppr 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 12164 |
api/src/main/java/org/apache/cloudstack/api/command/user/firewall/CreateFirewallRuleCmd.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@shwstppr 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 12184 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-12176) |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[LL]Trillian test result (tid-7066)
|
|
[SF] Trillian test result (tid-12185)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, tested in a lab env (also unit tests provided
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
Fixes #10002
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?