Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0033198 | Openbravo ERP | C. Security | public | 2016-06-08 22:49 | 2016-06-24 22:11 | ||||||||||||||
Reporter | rbianchini | ||||||||||||||||||
Assigned To | dmiguelez | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | 3.0PR16Q1.3 | ||||||||||||||||||
Target Version | Fixed in Version | 3.0PR16Q3 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | aferraz | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0033198: Wrong Organization in treenode | ||||||||||||||||||
Description | When you create a new element value in an account tree, sometimes the organization associated to the elementvalue is not the same organization that is associated wit the treenode related to the element value. This cause errors associated with the role's permissions. | ||||||||||||||||||
Steps To Reproduce | 1 - Log in the ERP and check (by clicking in the name) that the organization you are using is "F&B España - Región Norte" 2 - Go to "Account Tree" window 3 - Select the tree "F&B International Group Account Account 4 - Switch to "Element Value" tab and add a new element with name = 'Test' and a NUMERIC value for the search key, for example 10001 5 - Execute this query in the database: Select e.c_elementvalue_id elementID, t.ad_treenode_id treenodeID, oe.name elementOrg, ot.name treenodeOrg from c_elementvalue e join ad_org oe on e.ad_org_id = oe.ad_org_id join ad_treenode t on t.node_id = e.c_elementvalue_id join ad_org ot on ot.ad_org_id = t.ad_org_id where e.name = 'test' 6 - Realize that elementOrg is F&B International Group (The Account tree's organization --> OK) and the treenodeOrg is F&B España - Región Norte (The actual user's organization --> wrong, it should be the same as elementOrg) | ||||||||||||||||||
Proposed Solution | The problem is on the following line[1]of the ElementValueEventHandler. At that point the TreeNode element is created with the current context organization using DAL. [1] https://code.openbravo.com/erp/devel/pi/file/2ab287aa587c/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/ElementValueEventHandler.java#l119 [^] | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | issue33198.diff (877) 2016-06-24 08:18 https://issues.openbravo.com/file_download.php?file_id=9576&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2016-06-08 22:49 | rbianchini | New Issue | |||||||||||||||||
2016-06-08 22:49 | rbianchini | Assigned To | => platform | ||||||||||||||||
2016-06-08 22:49 | rbianchini | Modules | => Core | ||||||||||||||||
2016-06-08 22:49 | rbianchini | Resolution time | => 1466650800 | ||||||||||||||||
2016-06-08 22:49 | rbianchini | Triggers an Emergency Pack | => No | ||||||||||||||||
2016-06-14 10:30 | alostale | Relationship added | related to 0033166 | ||||||||||||||||
2016-06-14 10:37 | alostale | Relationship added | related to 0031856 | ||||||||||||||||
2016-06-14 11:26 | alostale | Note Added: 0087241 | |||||||||||||||||
2016-06-14 11:26 | alostale | Status | new => feedback | ||||||||||||||||
2016-06-14 11:26 | alostale | Assigned To | platform => rbianchini | ||||||||||||||||
2016-06-22 18:58 | rbianchini | Note Added: 0087837 | |||||||||||||||||
2016-06-22 18:58 | rbianchini | Assigned To | rbianchini => alostale | ||||||||||||||||
2016-06-22 18:58 | rbianchini | Status | feedback => new | ||||||||||||||||
2016-06-23 19:28 | caristu | Resolution time | 1466650800 => 1466632800 | ||||||||||||||||
2016-06-23 19:28 | caristu | Proposed Solution updated | |||||||||||||||||
2016-06-23 20:04 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=12477#r12477 | ||||||||||||||||
2016-06-24 08:18 | caristu | File Added: issue33198.diff | |||||||||||||||||
2016-06-24 08:20 | caristu | Note Added: 0087866 | |||||||||||||||||
2016-06-24 09:13 | caristu | Assigned To | alostale => Triage Finance | ||||||||||||||||
2016-06-24 10:08 | aferraz | Assigned To | Triage Finance => dmiguelez | ||||||||||||||||
2016-06-24 10:10 | hgbot | Checkin | |||||||||||||||||
2016-06-24 10:10 | hgbot | Note Added: 0087884 | |||||||||||||||||
2016-06-24 10:10 | hgbot | Status | new => resolved | ||||||||||||||||
2016-06-24 10:10 | hgbot | Resolution | open => fixed | ||||||||||||||||
2016-06-24 10:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/11ff29c65d0941580591db8a890b3ec475fa87b9 [^] | ||||||||||||||||
2016-06-24 10:11 | aferraz | Review Assigned To | => aferraz | ||||||||||||||||
2016-06-24 10:11 | aferraz | Note Added: 0087885 | |||||||||||||||||
2016-06-24 10:11 | aferraz | Status | resolved => closed | ||||||||||||||||
2016-06-24 10:11 | aferraz | Fixed in Version | => 3.0PR16Q3 | ||||||||||||||||
2016-06-24 22:11 | hudsonbot | Checkin | |||||||||||||||||
2016-06-24 22:11 | hudsonbot | Note Added: 0087912 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|