[BUG#2359][Alert] Mail Chinese name is too long garbled#3199
[BUG#2359][Alert] Mail Chinese name is too long garbled#3199davidzollo merged 4 commits intoapache:devfrom
Conversation
CalvinKirs
left a comment
There was a problem hiding this comment.
LGTM.is it better to change the title to [BUG#2359][Alert] Mail Chinese name is too long garbled?
|
Hi, |
qiaozhanwei
left a comment
There was a problem hiding this comment.
SonarCloud Code Analysis is not running . please retry commit . Thx
Codecov Report
@@ Coverage Diff @@
## dev #3199 +/- ##
============================================
- Coverage 39.70% 33.79% -5.92%
+ Complexity 2723 2405 -318
============================================
Files 436 442 +6
Lines 20172 20605 +433
Branches 2456 2524 +68
============================================
- Hits 8010 6964 -1046
- Misses 11405 12980 +1575
+ Partials 757 661 -96 Continue to review full report at Codecov.
|
ok,I have resubmitted it |
|
Kudos, SonarCloud Quality Gate passed!
|
* 解决中文附件名过长时邮件附件中文乱码问题 * Solve the problem of messy Chinese name in excel attachment * SonarCloud Code Analysis is not running . retry commit * Update MailUtils.java Co-authored-by: johnnygo920 <W@ngchen2020> Co-authored-by: dailidong <dailidong66@gmail.com>
Brief change log
Verify this pull request
This pull request is already covered by existing tests.
local test method : org.apache.dolphinscheduler.alert.utils.MailUtilsTest#testSendMails

situation one: Chinese 100. result: success
situation two: Chinese 100 + English 100. result: success

other situation: Whether I set this property or not, and whether the name contains Chinese or not.when the length of attachment is too long, the mail will send failed. ( i have been test the situation that the length is 500, but i'm not sure the max length,because the exception is thrown by a native method)