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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055278
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorrandom2024-04-22 14:522024-05-06 16:19
ReporterRomain_GesquiereView Statuspublic 
Assigned Toeugen_hamuraru 
PrioritynormalResolutionfixedFixed in VersionPR24Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version7.x
OS VersionOpenbravo Appliance 14.04Database version9.3.xAnt version1.9.x
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055278: Not thread-safe on printing can lead to unexpected result

DescriptionAs the part of the code in the link below is not thread-safe, we can randomly have for example:
-User try to print multiple invoices
-At the same time some other user try to print one invoice
-The multi-print is not considered as multi-print and returns only one invoice

These variables are probably not thread-safe:

https://docs.google.com/document/d/1iAMkF9DvjQm3tAvCfOIa1IWuicmyfPcRjzWcwukW0l4/edit?usp=sharing [^]


The problematic code is in https://gitlab.com/openbravo/product/openbravo/-/blob/3.0PR24Q1.1/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java#L103 [^]
Steps To ReproduceCan happen randomly
Proposed SolutionIdea of fix linked
TagsNo tags attached.
Attached Filesdiff file icon jasper_fix.diff [^] (4,380 bytes) 2024-04-22 14:52 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0163985)
hgbot (developer)
2024-05-02 10:42

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1220 [^]
(0164113)
hgbot (developer)
2024-05-06 16:19

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: b5a069b756aa1d698787e0fcd05096c970dd4ddd
Author: Eugen Hamuraru <eugen.hamuraru@openbravo.com>
Date: 06-05-2024 14:19:27
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/b5a069b756aa1d698787e0fcd05096c970dd4ddd [^]

Fixes BUG-55278: PrintController was not thread-safe

  - Remove the usage of instance variables
  - Removed also wrongly overloaded createEmailOptionsPage method which was calling itself
  

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0164114)
hgbot (developer)
2024-05-06 16:19

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1220 [^]

- Issue History
Date Modified Username Field Change
2024-04-22 14:52 Romain_Gesquiere New Issue
2024-04-22 14:52 Romain_Gesquiere Assigned To => Triage Omni WMS
2024-04-22 14:52 Romain_Gesquiere File Added: jasper_fix.diff
2024-04-24 14:29 alostale Assigned To Triage Omni WMS => Triage Platform Conn
2024-04-24 14:30 alostale Project Modules => Openbravo ERP
2024-04-24 14:30 alostale Modules => Core
2024-04-24 14:30 alostale Triggers an Emergency Pack => No
2024-04-24 14:30 alostale Category Reporting => A. Platform
2024-04-24 14:37 alostale Description Updated View Revisions
2024-04-30 09:42 adrianromero Assigned To Triage Platform Conn => eugen_hamuraru
2024-05-02 10:42 hgbot Note Added: 0163985
2024-05-06 16:19 hgbot Resolution open => fixed
2024-05-06 16:19 hgbot Status new => closed
2024-05-06 16:19 hgbot Fixed in Version => PR24Q3
2024-05-06 16:19 hgbot Note Added: 0164113
2024-05-06 16:19 hgbot Note Added: 0164114


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker