Skip to content
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

KYLIN-4515 fix error with sending mail on ssl #1214

Merged
merged 1 commit into from Aug 22, 2020

Conversation

chenqingspring
Copy link

Proposed changes

Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When I set starttlsEnabled to true, and specify a ssl port as 465, the email could not be sent by this ssl port. It still use 25 default port.

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by setSSLOnConnect as well when using ssl port.

Types of changes

[Bugfix] fix error with sending mail on ssl

Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port. 

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
@codecov-commenter
Copy link

Codecov Report

Merging #1214 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1214      +/-   ##
============================================
- Coverage     24.85%   24.84%   -0.01%     
+ Complexity     6265     6263       -2     
============================================
  Files          1453     1453              
  Lines         89225    89226       +1     
  Branches      12456    12456              
============================================
- Hits          22173    22170       -3     
- Misses        64875    64878       +3     
- Partials       2177     2178       +1     
Impacted Files Coverage Δ Complexity Δ
...java/org/apache/kylin/common/util/MailService.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...he/kylin/dict/lookup/cache/RocksDBLookupTable.java 72.97% <0.00%> (-5.41%) 6.00% <0.00%> (-1.00%)
...he/kylin/job/impl/threadpool/DefaultScheduler.java 74.41% <0.00%> (-2.33%) 12.00% <0.00%> (ø%)
...ream/core/storage/columnar/ColumnarStoreCache.java 50.00% <0.00%> (-2.28%) 7.00% <0.00%> (-1.00%)
...rg/apache/kylin/cube/inmemcubing/MemDiskStore.java 70.21% <0.00%> (+0.91%) 7.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7886a24...5a94852. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5913

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 7 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.003%) to 27.291%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core-common/src/main/java/org/apache/kylin/common/util/MailService.java 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
core-dictionary/src/main/java/org/apache/kylin/dict/lookup/cache/RocksDBLookupTable.java 1 81.08%
stream-core/src/main/java/org/apache/kylin/stream/core/storage/columnar/ColumnarStoreCache.java 1 56.82%
core-job/src/main/java/org/apache/kylin/job/impl/threadpool/DefaultScheduler.java 2 80.23%
core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java 3 78.42%
Totals Coverage Status
Change from base Build 5911: -0.003%
Covered Lines: 24351
Relevant Lines: 89226

💛 - Coveralls

@nichunen
Copy link

@chenqingspring Thanks for your pr, would you please open a jira for the issue?

@chenqingspring
Copy link
Author

@nichunen Sure, with my pleasure :) KYLIN-4515

Copy link
Contributor

@shaofengshi shaofengshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello chenqing, thanks for your pr! Could you please report a JIRA issue, and then associate this commit with the JIRA? JIRA is required for each issue/bugfix. Thanks!

@chenqingspring
Copy link
Author

chenqingspring commented May 22, 2020

@shaofengshi Hi shaofeng, what do you mean by associating github commit? I'm trying to rename this issue start with KYLIN-4515, but it seems not editable.

@chenqingspring chenqingspring changed the title [Bugfix] fix error with sending mail on ssl KYLIN-4515 fix error with sending mail on ssl May 25, 2020
@chenqingspring
Copy link
Author

@shaofengshi somehow ... this issue name could be changed. Tell me if I should do anything else?

@shaofengshi shaofengshi merged commit d8060b6 into apache:master Aug 22, 2020
hit-lacus pushed a commit to hit-lacus/kylin that referenced this pull request Oct 8, 2020
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port. 

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
hit-lacus pushed a commit that referenced this pull request Oct 12, 2020
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port. 

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
zhangayqian pushed a commit to zhangayqian/kylin that referenced this pull request Jun 11, 2021
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port.

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.

(cherry picked from commit d8060b6)
zhangayqian pushed a commit to zhangayqian/kylin that referenced this pull request Jun 11, 2021
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port.

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.

(cherry picked from commit d8060b6)
hit-lacus pushed a commit that referenced this pull request Jun 27, 2021
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html

When we set `starttlsEnabled` to true, specify a ssl port as 465,  emails could not be sent by this ssl port, It still use 25 default port.

The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.

(cherry picked from commit d8060b6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants