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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048092
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Reportingminorhave not tried2021-11-17 14:392022-08-03 22:30
ReportervmromanosView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0048092: org.openbravo.reporting.tools module is using bad logging (printStackTrace)

DescriptionThis module is using bad logging (printStackTrace) which should fixed (removing it or converting to proper log4j)
Steps To Reproducegrep -IrE "System.out|System.err|printStackTrace" | grep -v buildvalidation | grep -v modulescript | grep -v src-test | cut -d'/' -f1-2 | sort | uniq -c
Proposed SolutionReview and move the logging to proper log4j usage.

While doing that check if:
- stackTrace is really wanted
- Logging is really useful (and not developer leftover)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0047974 closedfrancisco_ofarril Modules Several modules from functional/omni team are using bad logging (System.out,System.err println or printStackTrace) 
blocks design defect 0036162 acknowledgedTriage Platform Base Openbravo ERP clean up openbravo.log 

-  Notes
(0139618)
hgbot (developer)
2022-07-26 18:07

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.reporting.tools/-/merge_requests/7 [^]
(0139860)
hgbot (developer)
2022-08-03 22:30

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.reporting.tools/-/merge_requests/7 [^]
(0139861)
hgbot (developer)
2022-08-03 22:30

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.reporting.tools [^]
Changeset: 7ad87c7f7eaec2d4ef62b532ebb231453ec6296f
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 26-07-2022 18:05:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.reporting.tools/-/commit/7ad87c7f7eaec2d4ef62b532ebb231453ec6296f [^]

Fixes ISSUE-48092: Convert printStackTrace to log4j

Using printStackTrace() is discouraged especially for code running in
tomcat (wrong log-files, no timestamp etc).

While this file is ant commandline task so not critical best avoid
having bad example for others to find/copy.

---
M src/org/openbravo/reporting/tools/task/GenerateJasperPropertyFileTask.java
---

- Issue History
Date Modified Username Field Change
2021-11-17 14:39 vmromanos New Issue
2021-11-17 14:39 vmromanos Assigned To => Triage Finance
2021-11-17 14:39 vmromanos Issue generated from 0047974
2021-11-17 14:39 vmromanos Relationship added related to 0047974
2021-11-17 14:39 vmromanos Relationship added blocks 0036162
2021-11-17 14:42 vmromanos Assigned To Triage Finance => mtaal
2022-07-26 16:46 shuehner Issue cloned 0049877
2022-07-26 18:05 shuehner Summary Reporting/WMS: Several modules are using bad logging (System.out,System.err println or printStackTrace) => org.openbravo.reporting.tools module is using bad logging (printStackTrace)
2022-07-26 18:05 shuehner Description Updated View Revisions
2022-07-26 18:05 shuehner Steps to Reproduce Updated View Revisions
2022-07-26 18:07 hgbot Note Added: 0139618
2022-08-03 22:30 hgbot Note Added: 0139860
2022-08-03 22:30 hgbot Resolution open => fixed
2022-08-03 22:30 hgbot Status new => closed
2022-08-03 22:30 hgbot Note Added: 0139861


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker