Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036972Openbravo ERPA. Platformpublic2017-09-28 16:442018-01-03 12:39
gorka_gil 
caristu 
lowminoralways
closedfixed 
5
 
3.0PR18Q1 
alostale
Google Chrome
Core
No
0036972: In a tree, moving an item that you don't have access produce null pointer error in the log and don't give feedback to the user
In a tree in which have access to some items and other no,
If move an item that don't have access

A) it gives these errors in openbravo.log:
- ERROR org.openbravo.base.exception.OBSecurityException - Organization ....
- ERROR org.openbravo.service.datasource.TreeDatasourceService - Error while moving tree node
- ERROR org.openbravo.service.datasource.DataSourceServlet -
java.lang.NullPointerException

Complete error log: https://pastebin.com/raw/YA6d6NeJ [^]

B) Also it shows like it can move it, and when fail there is no feedback of the error


Note: if you put the tab as read only (UI Pattern), it don't give errors in the log, and the dots line that show where the item will be moved is not show. So gives a better user experience, maybe clone this behaviour?
A standard retail environment with the pack like in livebuilds:
- https://livebuilds.openbravo.com/retail_pi_pgsql [^]

Login in the backend as vallblanca.

Go to the "Product Category" window

Notice how you have access to some records and other not (icon of save in the grid)

Click on the menu view

Try to move the item "Backpacks & Travel" to any place.


Notice the errors in the openbravo.log and that for the user don't give any information that has fail and why.
1) Fix the error in the log

2) when trying to move an item without access don't show the dots line, that shows where the item will be moved. Or other similar way that gives feedback to the user that this item can not be moved
    2.b) Alternatively, other option when trying to move, show a warning/info in the ui to the user. Or any other way of feedback to the user.
No tags attached.
Issue History
2017-09-28 16:44gorka_gilNew Issue
2017-09-28 16:44gorka_gilAssigned To => platform
2017-09-28 16:44gorka_gilWeb browser => Google Chrome
2017-09-28 16:44gorka_gilModules => Core
2017-09-28 16:44gorka_gilTriggers an Emergency Pack => No
2017-11-24 11:18caristuAssigned Toplatform => caristu
2017-11-24 11:19hgbotCheckin
2017-11-24 11:19hgbotNote Added: 0100698
2017-11-24 11:19hgbotStatusnew => resolved
2017-11-24 11:19hgbotResolutionopen => fixed
2017-11-24 11:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/10214c76633ec218343d42a34f303240d59030c7 [^]
2017-11-24 11:20caristuReview Assigned To => alostale
2017-11-24 11:20caristuWeb browserGoogle Chrome => Google Chrome
2017-11-27 10:10alostaleNote Added: 0100726
2017-11-27 10:10alostaleStatusresolved => closed
2017-11-27 10:10alostaleFixed in Version => 3.0PR18Q1
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101455

Notes
(0100698)
hgbot   
2017-11-24 11:19   
Repository: erp/devel/pi
Changeset: 10214c76633ec218343d42a34f303240d59030c7
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Nov 24 11:15:29 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/10214c76633ec218343d42a34f303240d59030c7 [^]

fixes bug 36972: Show error in the UI when there is an error moving a tree node

Add the ability to display error messages in the UI when there are errors on the update flow of the tree datasource.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/TreeDatasourceService.java
---
(0100726)
alostale   
2017-11-27 10:10   
reviewed + tested
(0101455)
hudsonbot   
2018-01-03 12:39   
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/c81e0d3cbab5 [^]
Maturity status: Test