Menu

#2716 Adempiere 3.7.0 setup email settings not validated

Core
open
9
2014-08-21
2012-03-09
Bogdan
No

When running Adempiere 3.7.0 setup or silent setup the email settings do not get validated because of a "No DB connection" error arising from within the base/src/org/compiere/util/EMail.class

This bug was introduced by the changesets of FR[3090719] (changeset ids: fbf631fa7d04 and fe0d6e0836ce)

<<code following>>
String bccAddressForAllMails = MSysConfig.getValue("MAIL_SEND_BCC_TO_ADDRESS", Env.getAD_Client_ID(Env.getCtx()));
if (bccAddressForAllMails != null && bccAddressForAllMails.length() > 0)
addBcc(bccAddressForAllMails);
<</code>>

and

<<code following>>
if (MSysConfig.getBooleanValue("MAIL_SEND_BCC_TO_FROM", false, Env.getAD_Client_ID(Env.getCtx())));
addBcc(newFrom);
<</code>>

The above code checks MAIL_SEND_BCC_TO_FROM and MAIL_SEND_BCC_TO_ADDRESS flags in the database in order to know if to add BCC or not.

BUT, when at setup no DB connection has been saved yet and therefore the MSysConfig database interrogation fails, and with it the validation fails.

Discussion

  • Bogdan

    Bogdan - 2012-03-09
    • summary: Adempiere setup email settings not validated --> Adempiere 3.7.0 setup email settings not validated
     
  • Bogdan

    Bogdan - 2012-03-09
    • priority: 5 --> 9
    • assigned_to: nobody --> trifonnt
     

Log in to post a comment.