wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
748 stars 729 forks source link

Error logs are printed for email provider configured with incorrect credentials. #21777

Open Yoshani opened 4 days ago

Yoshani commented 4 days ago

Describe the Issue:

"ERROR {org.wso2.carbon.event.output.adapter.email.EmailEventAdapter} - Exception occurred when sending email to abc@gmail.com. 535-5.7.8 Username and Password not accepted. For more information, go to|535 5.7.8  https://support.google.com/mail/?p=BadCredentials - gsmtp| javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. For more information, go to"
" ERROR {org.wso2.carbon.event.output.adapter.email.EmailEventAdapter} - Event dropped at Output Adapter 'EmailPublisher' for tenant id '15983', Error in message format, 535-5.7.8 Username and Password not accepted. For more information, go to|535 5.7.8  https://support.google.com/mail/?p=BadCredentials - gsmtp| javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. For more information, go to"

We may have to fix here and reduce the severity to warn log and if possible publish a diagnostic log.

[1] - https://github.com/wso2/carbon-analytics-common/blob/v5.2.59/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.email/src/main/java/org/wso2/carbon/event/output/adapter/email/EmailEventAdapter.java#L420

Yoshani commented 4 days ago

Fix https://github.com/wso2/carbon-analytics-common/pull/858

Yoshani commented 3 days ago
image
Yoshani commented 2 hours ago

New PR raised without the diagnostic log due to inability to integrate a diagnostic log owing to kernel version bump not directly being supported.