Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0023198
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformmajorhave not tried2013-02-28 18:142013-03-28 01:39
ReporterAugustoMauchView Statuspublic 
Assigned Toshankarb 
PrioritynormalResolutionfixedFixed in Version3.0MP22
StatusclosedFix in branchFixed in SCM revision39233b3f5735
ProjectionnoneETAnoneTarget Version3.0MP22
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0023198: Centralize and improve the retrieval of EmailServerConfiguration

DescriptionIn the PrintController.createEmailOptionsPage method there is some code used to retrieve the EmailServerConfiguration object that should be used to send an email. This logic should be centralized so that it is reusable.

This logic should be improved because the way it is it's not retrieving the proper EmailServerConfiguration for each organization. Right now it does the following:
- Returns the EmailServerConfiguration defined for the current organization
- If there are none, returns the EmailServerConfiguration of the '*'
- If there are none, returns the first EmailServerConfiguration listed (using an arbitrary order).

It should work like this:
- If the current organization has a EmailServerConfiguration defined, returned it
- If not do the same with its parent organization, until the '*' organization is reached.

Example: how it works Right
Steps To Reproduce-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 00232993.0MP22 closedalostale Send email on events 
related to defect 00234793.0MP22 closedAugustoMauch Retrieval of EmailServerConfiguration does not work if several clients have configured their email 

-  Notes
(0057282)
hgbot (developer)
2013-03-17 15:39

Repository: erp/devel/pi
Changeset: 5def5186a07f8394ad89bc4aee171a8de3fe186d
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Sun Mar 17 20:08:08 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/5def5186a07f8394ad89bc4aee171a8de3fe186d [^]

Fixes Issue 0023198: Centralize and improve the retrieval of EmailServerConfiguration

Updated EmailServerConfiguration to retrieve the organization based on the parent hierarchy.
It works as follows:
- If the current organization has a EmailServerConfiguration defined, return it.
- If not do the same with its parent organization, until the '*' organization is reached.

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0057294)
AugustoMauch (administrator)
2013-03-18 11:06

Only part of the requirements have been fixed. The retrieval of the EmailServerConfiguration now works properly, but it should be centralized so that it can be used from other Openbravo components.

Other comments:
- Why the need to add this order by? [1]
- To check if a list is empty, don't compare its size with 0 but use the isEmpty() function

[1] https://code.openbravo.com/erp/devel/pi/rev/5def5186a07f8394ad89bc4aee171a8de3fe186d#l1.68 [^]
(0057299)
hgbot (developer)
2013-03-18 12:50

Repository: erp/devel/pi
Changeset: 39233b3f573537b73626213dbaf68a4f3102e1ed
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Mar 18 17:18:15 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/39233b3f573537b73626213dbaf68a4f3102e1ed [^]

Fixes Issue 0023198: Centralization of EmailServerConfiguration

Added email server configuration to Utility and applied code review changes

---
M src/org/openbravo/erpCommon/utility/Utility.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0057458)
hgbot (developer)
2013-03-26 11:44

Repository: erp/devel/pi
Changeset: b22612f93099797a9827562ac6dc8449b0152fc9
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Mar 26 16:12:15 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/b22612f93099797a9827562ac6dc8449b0152fc9 [^]

Related to Issue 23198 : Added EmailUtils.java, code refactoring

Added a new file EmailUtils.java.
Moved getEmailConfiguration from Utility.java to EmailUtils.java
Refactored EmailEventManager and PrintController class to call the EmailUtils methods

---
M src/org/openbravo/email/EmailEventManager.java
M src/org/openbravo/erpCommon/utility/Utility.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
A src/org/openbravo/email/EmailUtils.java
---
(0057463)
hgbot (developer)
2013-03-26 16:07

Repository: erp/devel/api-checks
Changeset: 0e9f0571ebc918c624a9c74997c727bfb9aa76db
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Mar 26 20:35:06 2013 +0530
URL: http://code.openbravo.com/erp/devel/api-checks/rev/0e9f0571ebc918c624a9c74997c727bfb9aa76db [^]

Related to Issue 23198 : Fix false positive in int-api/3840 build

Removed method was not published yet.

---
M java/reference/java.japi.gz
---
(0057479)
hgbot (developer)
2013-03-26 18:57

Repository: erp/devel/pi
Changeset: dede88e1e38f8819dd2b3b89529068317ae243c2
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Mar 26 23:26:03 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/dede88e1e38f8819dd2b3b89529068317ae243c2 [^]

Related to Issue 23198 : Code refactoring

---
M src/org/openbravo/email/EmailUtils.java
---
(0057515)
AugustoMauch (administrator)
2013-03-27 18:23

Code reviewed and verified in pi@bc2062961ed8
(0057519)
hudsonbot (developer)
2013-03-28 01:39

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6c4c5ed08030 [^]

Maturity status: Test
(0057527)
hudsonbot (developer)
2013-03-28 01:39

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6c4c5ed08030 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2013-02-28 18:14 AugustoMauch New Issue
2013-02-28 18:14 AugustoMauch Assigned To => AugustoMauch
2013-02-28 18:14 AugustoMauch Modules => Core
2013-02-28 18:14 AugustoMauch Triggers an Emergency Pack => No
2013-02-28 18:15 AugustoMauch Summary Centralize and improve EmailServerConfiguration retrieval => Centralize and improve the retrieval of EmailServerConfiguration
2013-03-14 10:08 shankarb Assigned To AugustoMauch => shankarb
2013-03-14 10:29 alostale Relationship added related to 0023299
2013-03-14 10:29 alostale Issue Monitored: alostale
2013-03-17 15:39 hgbot Checkin
2013-03-17 15:39 hgbot Note Added: 0057282
2013-03-17 15:39 hgbot Status new => resolved
2013-03-17 15:39 hgbot Resolution open => fixed
2013-03-17 15:39 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5def5186a07f8394ad89bc4aee171a8de3fe186d [^]
2013-03-17 15:39 shankarb Issue Monitored: AugustoMauch
2013-03-18 11:06 AugustoMauch Note Added: 0057294
2013-03-18 11:06 AugustoMauch Status resolved => new
2013-03-18 11:06 AugustoMauch Resolution fixed => open
2013-03-18 12:50 hgbot Checkin
2013-03-18 12:50 hgbot Note Added: 0057299
2013-03-18 12:50 hgbot Status new => resolved
2013-03-18 12:50 hgbot Resolution open => fixed
2013-03-18 12:50 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/5def5186a07f8394ad89bc4aee171a8de3fe186d [^] => http://code.openbravo.com/erp/devel/pi/rev/39233b3f573537b73626213dbaf68a4f3102e1ed [^]
2013-03-26 11:44 hgbot Checkin
2013-03-26 11:44 hgbot Note Added: 0057458
2013-03-26 16:07 hgbot Checkin
2013-03-26 16:07 hgbot Note Added: 0057463
2013-03-26 18:57 hgbot Checkin
2013-03-26 18:57 hgbot Note Added: 0057479
2013-03-27 18:23 AugustoMauch Review Assigned To => AugustoMauch
2013-03-27 18:23 AugustoMauch Note Added: 0057515
2013-03-27 18:23 AugustoMauch Status resolved => closed
2013-03-27 18:23 AugustoMauch Fixed in Version => 3.0MP22
2013-03-28 01:39 hudsonbot Checkin
2013-03-28 01:39 hudsonbot Note Added: 0057519
2013-03-28 01:39 hudsonbot Checkin
2013-03-28 01:39 hudsonbot Note Added: 0057527
2013-04-03 16:31 AugustoMauch Relationship added related to 0023479


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker