Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030151 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2015-06-10 17:07 | 2015-06-19 14:18 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR15Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 0dfb1e303a07 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030151: NPE with clientclass field + field level access | |||||||
Description | When a window has at least a client class field and the role accessing that window has field level access permissions for that window, a NPE is thrown when opening it. | |||||||
Steps To Reproduce | -Install org.openbravo.client.application.examples module which adds a client class field in Sales Order Header window -As group admin role: Create a new role Set the user level to Client+Organization Set it as manual Set an organization in the Org Access tab Set Sales Order window in the Window Access tab: Editable Field: Y Set Header tab in the Tab Access tab: Editable Field: Y Set Copy From Order field in the Field Access tab: Editable Field: N Check On Save: N -As that role open Sales Order window -> error popup is seen in UI -> this error appears in openbravo.log: 1f923ef8 2262224 [http-8080-8] ERROR org.openbravo.base.exception.OBException - java.lang.NullPointerException at org.openbravo.client.kernel.KernelUtils.getProperty(KernelUtils.java:462) at org.openbravo.client.application.WindowSettingsActionHandler.execute(WindowSettingsActionHandler.java:136) at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:71) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0078290) hgbot (developer) 2015-06-15 10:46 |
Repository: erp/devel/pi Changeset: 0dfb1e303a0750940956474602846142100b652e Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Jun 15 10:45:15 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/0dfb1e303a0750940956474602846142100b652e [^] fixed bug 30151: NPE with clientclass field + field level access When calculating field role access, the code assumed all fields are linked to a property which is not the case of clientclass fields. In this case a NPE was thrown. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java --- |
(0078310) hudsonbot (viewer) 2015-06-16 00:37 |
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/fa5bbdf39822 [^] Maturity status: Test |
(0078396) caristu (viewer) 2015-06-19 14:18 |
Code review + Tested OK Tested with client class field in Sales Order Header window added with "User Interface Application Examples" module. Accessed to the Sales Order window without errors, using a manual role configured as explained in Steps To Reproduce. |
![]() |
|||
Date Modified | Username | Field | Change |
2015-06-10 17:07 | alostale | New Issue | |
2015-06-10 17:07 | alostale | Assigned To | => platform |
2015-06-10 17:07 | alostale | OBNetwork customer | => No |
2015-06-10 17:07 | alostale | Modules | => Core |
2015-06-10 17:07 | alostale | Triggers an Emergency Pack | => No |
2015-06-15 10:43 | alostale | Review Assigned To | => caristu |
2015-06-15 10:43 | alostale | Assigned To | platform => alostale |
2015-06-15 10:46 | hgbot | Checkin | |
2015-06-15 10:46 | hgbot | Note Added: 0078290 | |
2015-06-15 10:46 | hgbot | Status | new => resolved |
2015-06-15 10:46 | hgbot | Resolution | open => fixed |
2015-06-15 10:46 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0dfb1e303a0750940956474602846142100b652e [^] |
2015-06-16 00:37 | hudsonbot | Checkin | |
2015-06-16 00:37 | hudsonbot | Note Added: 0078310 | |
2015-06-19 14:18 | caristu | Note Added: 0078396 | |
2015-06-19 14:18 | caristu | Status | resolved => closed |
2015-06-19 14:18 | caristu | Fixed in Version | => 3.0PR15Q3 |
Copyright © 2000 - 2009 MantisBT Group |