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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036582
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-08-02 15:402017-08-24 09:12
ReporterioritzCiaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR17Q4
StatusclosedFix in branchFixed in SCM revisionb268a450e037
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036582: Bad logging code at exception at MobileCoreLoginHandler

DescriptionThere is bad logging code at MobileCoreLoginHandler.

In https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/e3cb74a79b0d/src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java [^]

Line 198 should disappear, it is wrong and in production systems it is printing errors in catalina.out

Line 199 should be a debug and should not print the stack trace when the exception is because of wrong password.

Line 204 should be reviewed as well when the exception is because of wrong password.

For lines 199 and 204 the behaviour should only change when it is an identification error, not for the rest of the error.

There are two files uploaded with proposed changes to take out the printStackTraces from posterminal and mobilecore.
Steps To ReproduceTry to login in the POS with a wrong password.
See catalina.out and openbravo.log
TagsNo tags attached.
Attached Filesdiff file icon mobilecore-printStackTrace-removal.diff [^] (555 bytes) 2017-08-02 17:20 [Show Content]
diff file icon posterminal-printStackTrace-removal.diff [^] (5,522 bytes) 2017-08-02 17:20 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0031674 closedalostale Openbravo ERP too verbose log for invalid login attempt 
blocks design defect 0036162 acknowledgedTriage Platform Base Openbravo ERP clean up openbravo.log 

-  Notes
(0098406)
hgbot (developer)
2017-08-07 13:54

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a117bf6fbc3401d86ed5962ab31458135860c319
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Aug 07 17:23:48 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a117bf6fbc3401d86ed5962ab31458135860c319 [^]

Related to issue 36582 : Replaced printStackTrace with Logger

---
M src-util/modulescript/src/src/org/openbravo/mobile/core/modulescript/UpdateEmptyMobileServerKeyData.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0098407)
hgbot (developer)
2017-08-07 13:55

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5984743bae371bc89d5002e450d9ba2582cbb567
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Aug 07 17:23:59 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5984743bae371bc89d5002e450d9ba2582cbb567 [^]

Fixed issue 36582 : Replaced printStackTrace with Logger

---
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/ad_reports/CashUpReport.java
M src/org/openbravo/retail/posterminal/master/CharacteristicValueProperties.java
M src/org/openbravo/retail/posterminal/master/Product.java
M src/org/openbravo/retail/posterminal/term/Labels.java
M src/org/openbravo/retail/posterminal/utility/GenerateProductImages.java
---
(0098477)
Sandrahuguet (developer)
2017-08-10 14:31
edited on: 2017-08-10 14:44

Issue reopened due to the following reasons:

1. .class files related to modulescript[1] should be generated (ant compile.modulescript -Dmodule=org.openbravo... ) and pushed.

2. not fixed completely. See description:
Line 199 should be a debug and should not print the stack trace when the exception is because of wrong password.
Line 204 should be reviewed as well when the exception is because of wrong password.
For lines 199 and 204 the behaviour should only change when it is an identification error, not for the rest of the error.


[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/diff/a117bf6fbc34/src-util/modulescript/src/src/org/openbravo/mobile/core/modulescript/UpdateEmptyMobileServerKeyData.java [^]

(0098564)
hgbot (developer)
2017-08-22 08:05

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b268a450e0377af624e64f79ff4a4648ba29e102
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Aug 22 11:34:35 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b268a450e0377af624e64f79ff4a4648ba29e102 [^]

Fixed issue 36582 : Replaced printStackTrace with Logger

* Updated class files in modulescript

---
M build/classes/org/openbravo/mobile/core/modulescript/UpdateEmptyMobileServerKey.class
M build/classes/org/openbravo/mobile/core/modulescript/UpdateEmptyMobileServerKeyData.class
---

- Issue History
Date Modified Username Field Change
2017-08-02 15:40 ioritzCia New Issue
2017-08-02 15:40 ioritzCia Assigned To => Retail
2017-08-02 15:40 ioritzCia Resolution time => 1502834400
2017-08-02 15:40 ioritzCia Triggers an Emergency Pack => No
2017-08-02 15:40 ioritzCia Relationship added blocks 0036162
2017-08-02 15:41 ioritzCia Relationship added related to 0031674
2017-08-02 15:41 ioritzCia Description Updated View Revisions
2017-08-02 15:42 ioritzCia Summary Bad code at MobileCoreLoginHandler => Bad logging code at exception at MobileCoreLoginHandler
2017-08-02 16:55 ioritzCia Description Updated View Revisions
2017-08-02 17:02 ioritzCia Description Updated View Revisions
2017-08-02 17:20 ioritzCia File Added: mobilecore-printStackTrace-removal.diff
2017-08-02 17:20 ioritzCia File Added: posterminal-printStackTrace-removal.diff
2017-08-02 17:22 ioritzCia Description Updated View Revisions
2017-08-03 10:23 ioritzCia Description Updated View Revisions
2017-08-05 08:27 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2017-08-05 08:27 ranjith_qualiantech_com Status new => scheduled
2017-08-07 13:54 hgbot Checkin
2017-08-07 13:54 hgbot Note Added: 0098406
2017-08-07 13:55 hgbot Checkin
2017-08-07 13:55 hgbot Note Added: 0098407
2017-08-07 13:55 hgbot Status scheduled => resolved
2017-08-07 13:55 hgbot Resolution open => fixed
2017-08-07 13:55 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5984743bae371bc89d5002e450d9ba2582cbb567 [^]
2017-08-09 14:02 Sandrahuguet Review Assigned To => Sandrahuguet
2017-08-10 14:31 Sandrahuguet Note Added: 0098477
2017-08-10 14:31 Sandrahuguet Status resolved => new
2017-08-10 14:31 Sandrahuguet Resolution fixed => open
2017-08-10 14:44 Sandrahuguet Note Edited: 0098477 View Revisions
2017-08-11 08:29 ranjith_qualiantech_com Status new => scheduled
2017-08-22 08:05 hgbot Checkin
2017-08-22 08:05 hgbot Note Added: 0098564
2017-08-22 08:05 hgbot Status scheduled => resolved
2017-08-22 08:05 hgbot Resolution open => fixed
2017-08-22 08:05 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5984743bae371bc89d5002e450d9ba2582cbb567 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b268a450e0377af624e64f79ff4a4648ba29e102 [^]
2017-08-24 09:12 marvintm Review Assigned To Sandrahuguet => marvintm
2017-08-24 09:12 marvintm Status resolved => closed
2017-08-24 09:12 marvintm Fixed in Version => RR17Q4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker