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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0026920
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2014-06-23 16:402014-06-27 14:06
ReportershuehnerView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in VersionRR14Q3
StatusclosedFix in branchFixed in SCM revisionf705c1784a92
ProjectionnoneETAnoneTarget VersionRR14Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression levelProduction - QA Approved
Regression date2014-03-06
Regression introduced in release
Regression introduced by commithttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/98aa4a0382357240f319d639d94a0e21f8eb7cef [^]
Triggers an Emergency PackNo
Summary

0026920: Unbalanced AdminMode calls on login to webpos

DescriptionSome code used during webpos login process has some unbalanced adminmode calls as can be seen in server log by this warning.

2014-06-23 16:13:18,561 [ajp-localhost%2F127.0.0.1-8809-4] WARN org.openbravo.dal.core.OBContext - Unbalanced calls to setAdminMode and restorePreviousMode. Consider setting the constant OBContext.ADMIN_TRACE_SIZE to a value higher than 0 to debug this situation

Steps To ReproduceLogin to webpos
check server log.
Proposed Solutionusual try/finally block with restorePreviousMode in the finally block.
TagsNo tags attached.
Attached Filesdiff file icon 26920.diff [^] (5,717 bytes) 2014-06-23 16:43 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0025924 closedrafademiguel Precision error in Multicurrency - Exchange Rate 

-  Notes
(0068256)
shuehner (administrator)
2014-06-23 16:42

Note:
Technically regression but no visible problem to the user so functionally transparent to user.

However technically wrong and running code with elevated privileges and can make security problem worse if that code has any.
(0068257)
shuehner (administrator)
2014-06-23 16:44

try/catch adds lots of whitespace. Check with 'hg diff -w' after applying to see real change.

Note: just compiled tested to verify the warning dissappears. Zero testing done so far.
(0068265)
hgbot (developer)
2014-06-23 22:11

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f705c1784a9295535716a9d21aa8d8d60515cf4a
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Jun 23 22:10:50 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f705c1784a9295535716a9d21aa8d8d60515cf4a [^]

Fixes issue 26920: added restorePreviousMode() in a try finally block

---
M src/org/openbravo/retail/posterminal/term/Payments.java
---

- Issue History
Date Modified Username Field Change
2014-06-23 16:40 shuehner New Issue
2014-06-23 16:40 shuehner Assigned To => marvintm
2014-06-23 16:40 shuehner Triggers an Emergency Pack => No
2014-06-23 16:42 shuehner Regression level => Production - QA Approved
2014-06-23 16:42 shuehner Regression date => 2014-03-06
2014-06-23 16:42 shuehner Regression introduced by commit => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/98aa4a0382357240f319d639d94a0e21f8eb7cef [^]
2014-06-23 16:42 shuehner Note Added: 0068256
2014-06-23 16:42 shuehner Proposed Solution updated
2014-06-23 16:43 shuehner File Added: 26920.diff
2014-06-23 16:44 shuehner Note Added: 0068257
2014-06-23 16:44 shuehner Relationship added related to 0025924
2014-06-23 16:46 shuehner Target Version => RR14Q3
2014-06-23 22:11 hgbot Checkin
2014-06-23 22:11 hgbot Note Added: 0068265
2014-06-23 22:11 hgbot Status new => resolved
2014-06-23 22:11 hgbot Resolution open => fixed
2014-06-23 22:11 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f705c1784a9295535716a9d21aa8d8d60515cf4a [^]
2014-06-27 14:06 marvintm Review Assigned To => marvintm
2014-06-27 14:06 marvintm Status resolved => closed
2014-06-27 14:06 marvintm Fixed in Version => RR14Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker