Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-04-04 Thread via GitHub


codecov-commenter commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-2036423262

   ## 
[Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/8418?dropdown=coverage=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 Report
   Attention: Patch coverage is `50.0%` with `12 lines` in your changes are 
missing coverage. Please review.
   > Project coverage is 30.80%. Comparing base 
[(`6d916ca`)](https://app.codecov.io/gh/apache/cloudstack/commit/6d916cad348f5833a567c17f5c9dbccaf2135448?dropdown=coverage=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 to head 
[(`c95f2ce`)](https://app.codecov.io/gh/apache/cloudstack/pull/8418?dropdown=coverage=pr=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   > Report is 151 commits behind head on 4.19.
   
   | 
[Files](https://app.codecov.io/gh/apache/cloudstack/pull/8418?dropdown=coverage=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | Patch % | Lines |
   |---|---|---|
   | 
[...pache/cloudstack/userdata/UserDataManagerImpl.java](https://app.codecov.io/gh/apache/cloudstack/pull/8418?src=pr=tree=engine%2Fuserdata%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fcloudstack%2Fuserdata%2FUserDataManagerImpl.java_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#diff-ZW5naW5lL3VzZXJkYXRhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9jbG91ZHN0YWNrL3VzZXJkYXRhL1VzZXJEYXRhTWFuYWdlckltcGwuamF2YQ==)
 | 40.00% | [7 Missing and 5 partials :warning: 
](https://app.codecov.io/gh/apache/cloudstack/pull/8418?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 |
   
   Additional details and impacted files
   
   
   ```diff
   @@ Coverage Diff  @@
   ##   4.19#8418  +/-   ##
   
   - Coverage 30.85%   30.80%   -0.05% 
   + Complexity3404833979  -69 
   
 Files  5341 5341  
 Lines374861   374888  +27 
 Branches  5451854520   +2 
   
   - Hits 115659   115491 -168 
   - Misses   243973   244127 +154 
   - Partials  1522915270  +41 
   ```
   
   | 
[Flag](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flags_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | Coverage Δ | |
   |---|---|---|
   | 
[simulator-marvin-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `24.72% <33.33%> (-0.04%)` | :arrow_down: |
   | 
[uitests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `4.39% <ø> (ø)` | |
   | 
[unit-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `16.46% <41.66%> (+<0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click 
here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#carryforward-flags-in-the-pull-request-comment)
 to find out more.
   
   
   
   
   [:umbrella: View full report in Codecov by 
Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/8418?dropdown=coverage=pr=continue_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   
   :loudspeaker: Have feedback on the report? [Share it 
here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-04-04 Thread via GitHub


github-actions[bot] commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-2036417471

   This pull request has merge conflicts. Dear author, please fix the conflicts 
and sync your branch with the base branch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-02-15 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1945663951

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8662


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-02-15 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1945568700

   @sureshanaparti 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-02-15 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1945560259

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-19 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1900103482

   @sureshanaparti 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-19 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1900101219

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-16 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1893855787

   [SF] Trillian Build Failed (tid-8854)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-16 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1893840501

   @sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + 
kvm-centos7) has been kicked to run smoke tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-16 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1893839109

   @blueorangutan test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-12 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1889300411

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 8303


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-12 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1889093621

   @sureshanaparti 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-12 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1889090095

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-12 Thread via GitHub


sureshanaparti commented on code in PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#discussion_r1450380154


##
engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java:
##
@@ -90,49 +88,50 @@ public String concatenateUserData(String userdata1, String 
userdata2, String use
 
 @Override
 public String validateUserData(String userData, BaseCmd.HTTPMethod 
httpmethod) {
-byte[] decodedUserData = null;
-if (userData != null) {
-
-if (userData.contains("%")) {
-try {
-userData = URLDecoder.decode(userData, "UTF-8");
-} catch (UnsupportedEncodingException e) {
-throw new InvalidParameterValueException("Url decoding of 
userdata failed.");
-}
-}
+if (StringUtils.isBlank(userData)) {

Review Comment:
   we can log it later, may be before validation, in case needed @JoaoJandre I 
think, logger obj for only this trace is unnecessary.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-10 Thread via GitHub


JoaoJandre commented on code in PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#discussion_r1447253910


##
engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java:
##
@@ -90,49 +88,50 @@ public String concatenateUserData(String userdata1, String 
userdata2, String use
 
 @Override
 public String validateUserData(String userData, BaseCmd.HTTPMethod 
httpmethod) {
-byte[] decodedUserData = null;
-if (userData != null) {
-
-if (userData.contains("%")) {
-try {
-userData = URLDecoder.decode(userData, "UTF-8");
-} catch (UnsupportedEncodingException e) {
-throw new InvalidParameterValueException("Url decoding of 
userdata failed.");
-}
-}
+if (StringUtils.isBlank(userData)) {

Review Comment:
   @sureshanaparti Maybe leave it at `trace` level? This way it will only show 
up when someone really needs to see it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-09 Thread via GitHub


sureshanaparti commented on code in PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#discussion_r1446943616


##
engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java:
##
@@ -90,49 +88,50 @@ public String concatenateUserData(String userdata1, String 
userdata2, String use
 
 @Override
 public String validateUserData(String userData, BaseCmd.HTTPMethod 
httpmethod) {
-byte[] decodedUserData = null;
-if (userData != null) {
-
-if (userData.contains("%")) {
-try {
-userData = URLDecoder.decode(userData, "UTF-8");
-} catch (UnsupportedEncodingException e) {
-throw new InvalidParameterValueException("Url decoding of 
userdata failed.");
-}
-}
+if (StringUtils.isBlank(userData)) {

Review Comment:
   @JoaoJandre may not be good to log user data here (can be of more length 
sometimes).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1877028818

   @sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + 
kvm-centos7) has been kicked to run smoke tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1877019500

   @blueorangutan test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1876981680

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8199


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1876895785

   @sureshanaparti 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1876894054

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1876893306

   > @sureshanaparti, along with these changes is it better to call the 
registerUserData API using POST from UI ?
   
   changes done


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-04 Thread via GitHub


sureshanaparti commented on code in PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#discussion_r1441565124


##
engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java:
##
@@ -90,49 +90,50 @@ public String concatenateUserData(String userdata1, String 
userdata2, String use
 
 @Override
 public String validateUserData(String userData, BaseCmd.HTTPMethod 
httpmethod) {
-byte[] decodedUserData = null;
-if (userData != null) {
-
-if (userData.contains("%")) {
-try {
-userData = URLDecoder.decode(userData, "UTF-8");
-} catch (UnsupportedEncodingException e) {
-throw new InvalidParameterValueException("Url decoding of 
userdata failed.");
-}
-}
+if (StringUtils.isBlank(userData)) {

Review Comment:
   > why is userdata obligatory?
   
   userdata is not mandatory, updated it to return null as earlier.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-03 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1875422883

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8189


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-03 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1875306092

   @rohityadavcloud 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2024-01-03 Thread via GitHub


rohityadavcloud commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1875305346

   @sureshanaparti can you review the outstanding comments?
   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2023-12-29 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1871871814

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8164


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2023-12-29 Thread via GitHub


DaanHoogland commented on code in PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#discussion_r1438096794


##
engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java:
##
@@ -90,49 +90,50 @@ public String concatenateUserData(String userdata1, String 
userdata2, String use
 
 @Override
 public String validateUserData(String userData, BaseCmd.HTTPMethod 
httpmethod) {
-byte[] decodedUserData = null;
-if (userData != null) {
-
-if (userData.contains("%")) {
-try {
-userData = URLDecoder.decode(userData, "UTF-8");
-} catch (UnsupportedEncodingException e) {
-throw new InvalidParameterValueException("Url decoding of 
userdata failed.");
-}
-}
+if (StringUtils.isBlank(userData)) {

Review Comment:
   why is userdata obligatory?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2023-12-29 Thread via GitHub


codecov[bot] commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1871835961

   ## 
[Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/8418?src=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Comparison is base 
[(`6d916ca`)](https://app.codecov.io/gh/apache/cloudstack/commit/6d916cad348f5833a567c17f5c9dbccaf2135448?el=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 30.85% compared to head 
[(`d7d93e1`)](https://app.codecov.io/gh/apache/cloudstack/pull/8418?src=pr=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 4.39%.
   > Report is 7 commits behind head on main.
   
   
   Additional details and impacted files
   
   
   ```diff
   @@ Coverage Diff  @@
   ##   main   #8418   +/-   ##
   
   - Coverage 30.85%   4.39%   -26.46% 
   
 Files  5341 361 -4980 
 Lines374861   28622   -346239 
 Branches  545184992-49526 
   
   - Hits 1156591258   -114401 
   + Misses   243973   27225   -216748 
   + Partials  15229 139-15090 
   ```
   
   | 
[Flag](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flags_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | Coverage Δ | |
   |---|---|---|
   | 
[simulator-marvin-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `?` | |
   | 
[uitests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `4.39% <ø> (ø)` | |
   | 
[unit-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8418/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click 
here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#carryforward-flags-in-the-pull-request-comment)
 to find out more.
   
   
   
   
   [:umbrella: View full report in Codecov by 
Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/8418?src=pr=continue_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   
   :loudspeaker: Have feedback on the report? [Share it 
here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2023-12-29 Thread via GitHub


blueorangutan commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1871833135

   @sureshanaparti 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] User data content size validation with actual length only, and some code improvements [cloudstack]

2023-12-29 Thread via GitHub


sureshanaparti commented on PR #8418:
URL: https://github.com/apache/cloudstack/pull/8418#issuecomment-1871832696

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org