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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032833
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2016-05-03 09:532016-06-17 19:37
ReportercaristuView Statuspublic 
Assigned Toinigosanchez 
PriorityimmediateResolutionfixedFixed in Version3.0PR16Q3
StatusclosedFix in branchFixed in SCM revision9db5d62f97ac
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression levelPre packaging ( pi )
Regression date2016-04-21
Regression introduced in releasepi
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/diff/28d29f254c34/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/TreeDatasourceService.java [^]
Triggers an Emergency PackNo
Summary

0032833: Tree view is not working properly

DescriptionTree view is not working properly. When trying to set a category as child of another one, the following error is displayed in the log:

ERROR org.openbravo.service.datasource.DataSourceServlet - With your current role and settings, you cannot view this information
org.openbravo.base.exception.OBException: With your current role and settings, you cannot view this information
    at org.openbravo.service.datasource.TreeDatasourceService.checkEditDatasourceAccess(TreeDatasourceService.java:144)
    at org.openbravo.service.datasource.DataSourceServlet.doPut(DataSourceServlet.java:845)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:228)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:431)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:88)
    at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:59)
    at org.openbravo.service.datasource.DataSourceServlet.service(DataSourceServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
....
Steps To Reproduce1) As F&B Group Admin, go to the [Product Category] window
2) Create a new category, and mark it as "Summary Level"
3) Try to move a category under the new category we have just created
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by feature request 00327283.0PR16Q3 closedinigosanchez Standard datasources should check entity access. 

-  Notes
(0086199)
hgbot (developer)
2016-05-05 09:42

Repository: erp/devel/pi
Changeset: 9db5d62f97acf30a86fc3f62bf4637a73666734b
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu May 05 09:40:37 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9db5d62f97acf30a86fc3f62bf4637a73666734b [^]

Fixed issue 32833: Tree view is not working properly

When a node in tree view is moved, entity used to check
security access is null. This exception is shown:
OBSecurityException - Entity null is not readable by the user 100
The problem was that getEntity() method can't retrieves an entity.

Now it have been resolved by getting entity from table
id (referencedTableId).

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/TreeDatasourceService.java
---
(0086205)
hgbot (developer)
2016-05-05 10:28

Repository: erp/devel/pi
Changeset: b8e072f27fec379dae25a1bfce15876f47706ed9
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu May 05 10:24:40 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b8e072f27fec379dae25a1bfce15876f47706ed9 [^]

Related with issue 32833: Added a test case

It has been added a test case to cover a movement of a node
in a tree view. It has been simulated doing an update request.

---
M src-test/src/org/openbravo/test/datasource/DataSourceSecurity.java
---
(0086231)
alostale (manager)
2016-05-06 08:28

code reviewed

tested:
- with admin role
- with a role having access to only Product Category window
(0087516)
hudsonbot (developer)
2016-06-17 19: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/0dc7be081b1c [^]
Maturity status: Test
(0087520)
hudsonbot (developer)
2016-06-17 19: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/0dc7be081b1c [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-05-03 09:53 caristu New Issue
2016-05-03 09:53 caristu Assigned To => platform
2016-05-03 09:53 caristu Modules => Core
2016-05-03 09:53 caristu Triggers an Emergency Pack => No
2016-05-03 09:56 caristu Regression level => Pre packaging ( pi )
2016-05-03 09:56 caristu Regression date => 2016-04-21
2016-05-03 09:56 caristu Regression introduced in release => pi
2016-05-03 09:56 caristu Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/diff/28d29f254c34/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/TreeDatasourceService.java [^]
2016-05-03 10:02 alostale Relationship added caused by 0032728
2016-05-03 10:03 alostale Status new => scheduled
2016-05-03 10:03 alostale Assigned To platform => inigosanchez
2016-05-05 09:42 hgbot Checkin
2016-05-05 09:42 hgbot Note Added: 0086199
2016-05-05 09:42 hgbot Status scheduled => resolved
2016-05-05 09:42 hgbot Resolution open => fixed
2016-05-05 09:42 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9db5d62f97acf30a86fc3f62bf4637a73666734b [^]
2016-05-05 10:28 hgbot Checkin
2016-05-05 10:28 hgbot Note Added: 0086205
2016-05-05 10:28 inigosanchez Review Assigned To => alostale
2016-05-06 08:28 alostale Note Added: 0086231
2016-05-06 08:28 alostale Status resolved => closed
2016-05-06 08:28 alostale Fixed in Version => 3.0PR16Q3
2016-06-17 19:37 hudsonbot Checkin
2016-06-17 19:37 hudsonbot Note Added: 0087516
2016-06-17 19:37 hudsonbot Checkin
2016-06-17 19:37 hudsonbot Note Added: 0087520


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker