Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023946Openbravo ERPA. Platformpublic2013-05-30 13:352013-06-03 12:30
marvintm 
marvintm 
normalminorhave not tried
closedfixed 
5
 
3.0MP24 
AugustoMauch
Core
No
0023946: In strange circumstances, there could be a null pointer exception in the index.jsp file
In some strange circumstances, a null pointer exception may happen in the index.jsp file (it's not reproducible, but it has happened in one environment).

This happens when the role is not set in the session, and there is no default role for the user. In this case, the check which checks if the role has its access to the backend restricted fails.
Not clear how it can be reproduced. It happened at least once in the butler instance.
In this obscure situation, the backend restriction will not be checked.
No tags attached.
Issue History
2013-05-30 13:35marvintmNew Issue
2013-05-30 13:35marvintmAssigned To => marvintm
2013-05-30 13:35marvintmModules => Core
2013-05-30 13:35marvintmTriggers an Emergency Pack => No
2013-05-30 13:36hgbotCheckin
2013-05-30 13:36hgbotNote Added: 0059072
2013-05-30 13:36hgbotStatusnew => resolved
2013-05-30 13:36hgbotResolutionopen => fixed
2013-05-30 13:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/22cf29c433bbbf26e31064e02d17e1c3bab14132 [^]
2013-06-01 02:15hudsonbotCheckin
2013-06-01 02:15hudsonbotNote Added: 0059108
2013-06-03 12:30AugustoMauchReview Assigned To => AugustoMauch
2013-06-03 12:30AugustoMauchNote Added: 0059123
2013-06-03 12:30AugustoMauchStatusresolved => closed
2013-06-03 12:30AugustoMauchFixed in Version => 3.0MP24

Notes
(0059072)
hgbot   
2013-05-30 13:36   
Repository: erp/devel/pi
Changeset: 22cf29c433bbbf26e31064e02d17e1c3bab14132
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 30 13:35:55 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/22cf29c433bbbf26e31064e02d17e1c3bab14132 [^]

Fixed issue 23946. The backend restriction will not be checked if there is no way to retrieve the role.

---
M src/index.jsp
---
(0059108)
hudsonbot   
2013-06-01 02:15   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/31f9b82dde77 [^]

Maturity status: Test
(0059123)
AugustoMauch   
2013-06-03 12:30   
Code reviewed and verified in pi@83b35f1de4c5