Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015826Openbravo ERP00. Application dictionarypublic2011-01-31 17:082011-03-16 00:00
egoitz 
alostale 
highminoralways
closedfixed 
5
2.50MP25 
2.50MP28 
Core
No
0015826: NPE when accessing a non-core window with read-only access
When accessing a non-core window with read-only access I get a
java.lang.NullPointerException
1) In a regular installation in Oracle with APRM module, login with user Openbravo.
2) With Openbravo Admin role, go to Security > Role and select Openbravo Admin role.
3) In Windows Access, select Make Payment (Payment Out) window and give it read-only
access.
4) Login and logout again with user Openbravo and Openbravo Admin role.
5) Navigate to Make Payment (Payment Out) window (see that New icon is there even if
you have read-only access )
6) Click on New icon, you get java.lang.NullPointerException error
No tags attached.
depends on backport 00160932.50MP28 closed alostale NPE when accessing a non-core window with read-only access 
Issue History
2011-01-31 17:08egoitzNew Issue
2011-01-31 17:08egoitzAssigned To => alostale
2011-01-31 17:08egoitzModules => Core
2011-01-31 17:37rafarodaIssue Monitored: rafaroda
2011-02-01 12:19egoitzPriorityimmediate => high
2011-02-01 12:19egoitzSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1468#r1468
2011-02-07 08:31alostaleStatusnew => scheduled
2011-03-01 13:57alostaleStatusscheduled => acknowledged
2011-03-01 13:57alostaleStatusacknowledged => scheduled
2011-03-01 13:57alostalefix_in_branch => pi
2011-03-01 13:59hgbotCheckin
2011-03-01 13:59hgbotNote Added: 0034471
2011-03-01 13:59hgbotStatusscheduled => resolved
2011-03-01 13:59hgbotResolutionopen => fixed
2011-03-01 13:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7990d87ea92e56de1ae0b9d8299cf5cd93efc99f [^]
2011-03-15 15:36marvintmNote Added: 0034894
2011-03-15 15:36marvintmStatusresolved => closed
2011-03-16 00:00anonymoussf_bug_id0 => 3214393

Notes
(0034471)
hgbot   
2011-03-01 13:59   
Repository: erp/devel/pi
Changeset: 7990d87ea92e56de1ae0b9d8299cf5cd93efc99f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 01 13:58:07 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7990d87ea92e56de1ae0b9d8299cf5cd93efc99f [^]

fixed bug 15826: Do not show new button if no write access is granted

---
M src-wad/src/org/openbravo/wad/javasource.javaxml
M src/org/openbravo/erpCommon/utility/ToolBar.java
---
(0034894)
marvintm   
2011-03-15 15:36   
Works fine.