Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0042399 | Openbravo ERP | A. Platform | public | 2019-11-26 11:43 | 2019-12-09 11:23 | |||||||
Reporter | egoitz | |||||||||||
Assigned To | caristu | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR20Q1 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0042399: Toolbar reports are using the readonly pool if configured | |||||||||||
Description | Based on the documentation [1] the reports printed from the standard toolbar button should use the standard pool and not the readonly pool but it is now working properly as same queries are executed in the readonly database. [1] http://wiki.openbravo.com/wiki/Read-Only_Pool [^] And starting from 3.0PR18Q2 release, the documents printed with the standard print toolbar button, are never using the read-only pool (even if configured) but the standard pool. See here for additional informatio | |||||||||||
Steps To Reproduce | 1- Configure Openbravo to use a readonly database 2- Configure postgresql on the readonly database to print all the queries (log_min_duration_statement = 0) 3- Go to purchase invoice window 4- Print the invoice using the toolbar button 5- Check the log on the readonly database. The query is printed on the log. | |||||||||||
Proposed Solution | The class Report.java [1] is using the readonly pool on the constructor: getReadOnlyConnectionProvider public Report(DocumentType documentType, String documentId, String strLanguage, String templateId, boolean multiReport, OutputTypeEnum outputTypeString) throws ReportingException, ServletException { this(DalConnectionProvider.getReadOnlyConnectionProvider(), documentType, documentId, strLanguage, templateId, multiReport, outputTypeString); } [1] https://code.openbravo.com/erp/devel/pi/file/tip/src/org/openbravo/erpCommon/utility/reporting/Report.java [^] | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-11-26 11:43 | egoitz | New Issue | ||||||||||
2019-11-26 11:43 | egoitz | Assigned To | => platform | |||||||||
2019-11-26 11:43 | egoitz | Modules | => Core | |||||||||
2019-11-26 11:43 | egoitz | Resolution time | => 1576105200 | |||||||||
2019-11-26 11:43 | egoitz | Triggers an Emergency Pack | => No | |||||||||
2019-11-26 13:27 | AugustoMauch | Relationship added | related to 0037933 | |||||||||
2019-11-26 18:34 | caristu | Assigned To | platform => caristu | |||||||||
2019-11-28 13:32 | caristu | Status | new => acknowledged | |||||||||
2019-11-28 13:32 | caristu | Status | acknowledged => scheduled | |||||||||
2019-12-09 10:24 | hgbot | Checkin | ||||||||||
2019-12-09 10:24 | hgbot | Note Added: 0116143 | ||||||||||
2019-12-09 10:24 | hgbot | Status | scheduled => resolved | |||||||||
2019-12-09 10:24 | hgbot | Resolution | open => fixed | |||||||||
2019-12-09 10:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f45e0aa5902dbb37011ac716555e74830c09f0a5 [^] | |||||||||
2019-12-09 11:22 | alostale | Review Assigned To | => alostale | |||||||||
2019-12-09 11:22 | alostale | Status | resolved => closed | |||||||||
2019-12-09 11:22 | alostale | Fixed in Version | => 3.0PR20Q1 | |||||||||
2019-12-09 11:23 | alostale | Note Added: 0116146 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|