-
Notifications
You must be signed in to change notification settings - Fork 5k
fix(dolphinscheduler-alert): fix create http request error #14793
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
Conversation
request type should use equalsIgnoreCase to equal,msg should add URLEncoder.encode
|
@Radeity plz update and rerun the failed part |
fuchanghai
left a comment
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.
LGTM ,if pass CI
Codecov Report
@@ Coverage Diff @@
## dev #14793 +/- ##
============================================
- Coverage 38.88% 38.87% -0.02%
- Complexity 4585 4586 +1
============================================
Files 1232 1232
Lines 43243 43246 +3
Branches 4772 4770 -2
============================================
- Hits 16817 16810 -7
- Misses 24566 24578 +12
+ Partials 1860 1858 -2
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| } | ||
| url = String.format("%s%s%s=%s", url, type, contentField, msg); | ||
| try { | ||
| url = String.format("%s%s%s=%s", url, type, contentField, URLEncoder.encode(msg, DEFAULT_CHARSET)); |
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.
Hi, @Radeity @fuchanghai , If add this, Should I remove the 124 lines of code to construct the URL, and then directly construct the URI through url?
brave-lee
left a comment
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.
+1
|
SonarCloud Quality Gate failed.
|
request type should use equalsIgnoreCase to equal,msg should add URLEncoder.encode Co-authored-by: hunter-cloud09 <[email protected]> Co-authored-by: Aaron Wang <[email protected]> Co-authored-by: JinYong Li <[email protected]> (cherry picked from commit 3c71fb0)











This pull request is code cleanup without any test coverage.
request type should use equalsIgnoreCase to equal,msg should add URLEncoder.encode #14777 #14781