Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0048748 | Openbravo ERP | Z. Others | public | 2022-03-08 19:06 | 2022-04-04 17:37 | |||||||
Reporter | ivazquez | |||||||||||
Assigned To | ivazquez | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | unable to reproduce | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | PR21Q2.3 | |||||||||||
Target Version | PR21Q2.3 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | AugustoMauch | |||||||||||
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 | 0048748: Open database connections are left open when printing reports (post upgrade from 18Q3 to 21Q2.3) | |||||||||||
Description | The process definition "Print National Invoices" prints invoices applying some filters, this report is a report containing two images. One is obtained from the form: org.openbravo.erpCommon.utility.Utility.showImageLogo("yourcompanylegal", $F{organizationid}) and the other of the form: org.openbravo.erpCommon.utility.Utility.showImage($F{org_invoice_image}). Each time the report is called, two connections remain open until postgres finally blocks the connections from reaching the maximum. Connections that remain open: a) select adimage0_.AD_Image_ID as AD_Image1_48_0_, adimage0_.AD_Client_ID as AD_Clien2_48_0_, adimage0_.AD_Org_ID as AD_Org_I3_48_0_, adimage0_.IsActive as IsActive4_48_0_, adimage0_.Created as Created5_48_0_, adimage0_.CreatedBy as CreatedB6_48_0_, adimage0_.Updated as Updated7_48_0_, adimage0_.UpdatedBy as UpdatedB8_48_0_, adimage0_.Name as Name9_48_0_, adimage0_.ImageURL as ImageUR10_48_0_, adimage0_.BinaryData as BinaryD11_48_0_, adimage0_.Width as Width12_48_0_, adimage0_.Height as Height13_48_0_, adimage0_.Mimetype as Mimetyp14_48_0_ from AD_Image adimage0_ where adimage0_.AD_Image_ID=$1 b) select adimage0_.AD_Image_ID as AD_Image1_48_0_, adimage0_.AD_Client_ID as AD_Clien2_48_0_, adimage0_.AD_Org_ID as AD_Org_I3_48_0_, adimage0_.IsActive as IsActive4_48_0_, adimage0_.Created as Created5_48_0_, adimage0_.CreatedBy as CreatedB6_48_0_, adimage0_.Updated as Updated7_48_0_, adimage0_.UpdatedBy as UpdatedB8_48_0_, adimage0_.Name as Name9_48_0_, adimage0_.ImageURL as ImageUR10_48_0_, adimage0_.BinaryData as BinaryD11_48_0_, adimage0_.Width as Width12_48_0_, adimage0_.Height as Height13_48_0_, adimage0_.Mimetype as Mimetyp14_48_0_ from AD_Image adimage0_ where adimage0_.AD_Image_ID in ($1, $2) This error has also been occurring since the customer upgraded from 18Q3 to 21Q2.3. -Attached images: 1.- The process definition that the customer uses to print invoices 3.- The definition of a process definition in the Application Dictionary 4.- How the connections look like after 3 runs of the invoice printing (each run opens two new connections) | |||||||||||
Steps To Reproduce | 1.- Go to "Print National Invoices" 2.- Complete all required fields 3.- Click on the button "Export to PDF" Verify in the database that the open connections are still open (Images are attached). | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | 01 -imprimir_facturas.png (56,321) 2022-03-08 19:06 https://issues.openbravo.com/file_download.php?file_id=16710&type=bug 03 - DefiniciĆ³n del process definition.png (105,127) 2022-03-08 19:07 https://issues.openbravo.com/file_download.php?file_id=16712&type=bug 04 - conexiones abiertas tras tres procesos.png (77,334) 2022-03-08 19:07 https://issues.openbravo.com/file_download.php?file_id=16713&type=bug Invoice_Taxes.jrxml (5,784) 2022-03-11 18:30 https://issues.openbravo.com/file_download.php?file_id=16739&type=bug Invoice_Lines.jrxml (17,913) 2022-03-11 18:31 https://issues.openbravo.com/file_download.php?file_id=16740&type=bug Invoice_DueDates.jrxml (2,852) 2022-03-11 18:31 https://issues.openbravo.com/file_download.php?file_id=16741&type=bug Invoice_DiscountsFinancial.jrxml (3,168) 2022-03-11 18:31 https://issues.openbravo.com/file_download.php?file_id=16742&type=bug Invoice_Discounts.jrxml (3,154) 2022-03-11 18:32 https://issues.openbravo.com/file_download.php?file_id=16743&type=bug InvoiceDetails.jrxml (38,700) 2022-03-11 18:32 https://issues.openbravo.com/file_download.php?file_id=16744&type=bug Invoice_AditionalCosts.jrxml (3,198) 2022-03-11 18:32 https://issues.openbravo.com/file_download.php?file_id=16745&type=bug Invoice.jrxml (14,593) 2022-03-11 18:32 https://issues.openbravo.com/file_download.php?file_id=16746&type=bug com.openbravo.gps.sales.reports.tar.xz (604,652) 2022-03-17 14:53 https://issues.openbravo.com/file_download.php?file_id=16777&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2022-03-08 19:06 | ivazquez | New Issue | ||||||||||
2022-03-08 19:06 | ivazquez | Assigned To | => Triage Omni OMS | |||||||||
2022-03-08 19:06 | ivazquez | File Added: 01 -imprimir_facturas.png | ||||||||||
2022-03-08 19:06 | ivazquez | Modules | => Core | |||||||||
2022-03-08 19:06 | ivazquez | Triggers an Emergency Pack | => No | |||||||||
2022-03-08 19:06 | ivazquez | File Added: 02 - factura resultante.png | ||||||||||
2022-03-08 19:07 | ivazquez | File Added: 03 - DefiniciĆ³n del process definition.png | ||||||||||
2022-03-08 19:07 | ivazquez | File Added: 04 - conexiones abiertas tras tres procesos.png | ||||||||||
2022-03-08 19:10 | ivazquez | Relationship added | related to 0048465 | |||||||||
2022-03-08 19:12 | ivazquez | File Deleted: 02 - factura resultante.png | ||||||||||
2022-03-08 19:12 | ivazquez | Description Updated | bug_revision_view_page.php?rev_id=23745#r23745 | |||||||||
2022-03-08 19:22 | aferraz | Assigned To | Triage Omni OMS => Triage Platform Base | |||||||||
2022-03-10 16:35 | AugustoMauch | Status | new => feedback | |||||||||
2022-03-10 16:36 | AugustoMauch | Assigned To | Triage Platform Base => ivazquez | |||||||||
2022-03-10 16:38 | AugustoMauch | Note Added: 0135627 | ||||||||||
2022-03-11 18:30 | ivazquez | File Added: Invoice_Taxes.jrxml | ||||||||||
2022-03-11 18:31 | ivazquez | File Added: Invoice_Lines.jrxml | ||||||||||
2022-03-11 18:31 | ivazquez | File Added: Invoice_DueDates.jrxml | ||||||||||
2022-03-11 18:31 | ivazquez | File Added: Invoice_DiscountsFinancial.jrxml | ||||||||||
2022-03-11 18:32 | ivazquez | File Added: Invoice_Discounts.jrxml | ||||||||||
2022-03-11 18:32 | ivazquez | File Added: InvoiceDetails.jrxml | ||||||||||
2022-03-11 18:32 | ivazquez | File Added: Invoice_AditionalCosts.jrxml | ||||||||||
2022-03-11 18:32 | ivazquez | File Added: Invoice.jrxml | ||||||||||
2022-03-11 18:34 | ivazquez | Note Added: 0135665 | ||||||||||
2022-03-16 18:13 | ivazquez | Assigned To | ivazquez => Triage Platform Base | |||||||||
2022-03-16 18:13 | ivazquez | Status | feedback => new | |||||||||
2022-03-17 14:50 | AugustoMauch | Note Added: 0135807 | ||||||||||
2022-03-17 14:50 | AugustoMauch | Assigned To | Triage Platform Base => ivazquez | |||||||||
2022-03-17 14:50 | AugustoMauch | Status | new => feedback | |||||||||
2022-03-17 14:53 | ivazquez | File Added: com.openbravo.gps.sales.reports.tar.xz | ||||||||||
2022-03-17 14:59 | ivazquez | Note Added: 0135808 | ||||||||||
2022-03-21 16:09 | ivazquez | Assigned To | ivazquez => Triage Platform Base | |||||||||
2022-03-21 16:09 | ivazquez | Status | feedback => new | |||||||||
2022-03-28 21:27 | AugustoMauch | Note Added: 0136119 | ||||||||||
2022-03-28 21:27 | AugustoMauch | Assigned To | Triage Platform Base => ivazquez | |||||||||
2022-03-28 21:27 | AugustoMauch | Status | new => feedback | |||||||||
2022-04-04 17:35 | ivazquez | Note Added: 0136319 | ||||||||||
2022-04-04 17:35 | ivazquez | Resolution | open => unable to reproduce | |||||||||
2022-04-04 17:37 | ivazquez | Review Assigned To | => AugustoMauch | |||||||||
2022-04-04 17:37 | ivazquez | Status | feedback => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|