Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0041684 | Openbravo ERP | A. Platform | public | 2019-08-23 13:16 | 2019-11-12 16:13 |
|
Reporter | AugustoMauch | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | critical | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q4 | |
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 | 0041684: Extra widget instances are created if permission to widget class is removed |
Description | If access is removed from a widget, when there are already existing widget instances for that widget, each time widgets are refreshed new widget instances will be created |
Steps To Reproduce | Count the number of widget instances in you development environment:
select count(*) from obkmo_widget_instance
As System Admin:
- Open the Widget window, select the Welcome to Openbravo 3 widget
- Uncheck its Enable for All Users flag, set its module in development if needed
As F&B Admin:
- Open the Role window, select the F&B International Group Admin
- In the Widget Class Access subtab, remove the entry for the Welcome to Openbravo 3 widget
Restart the server (list of available widget classes is cached)
Log in with the F&B Admin role
Check that each time the Refresh button in the Manage Workspace is clicked, the number of widget instances increases. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0042260 | 3.0PR19Q3.3 | closed | AugustoMauch | Extra widget instances are created if permission to widget class is removed |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-08-23 13:16 | AugustoMauch | New Issue | |
2019-08-23 13:16 | AugustoMauch | Assigned To | => AugustoMauch |
2019-08-23 13:16 | AugustoMauch | OBNetwork customer | => No |
2019-08-23 13:16 | AugustoMauch | Modules | => Core |
2019-08-23 13:16 | AugustoMauch | Triggers an Emergency Pack | => No |
2019-08-23 13:40 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19324#r19324 |
2019-08-23 13:40 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=19326#r19326 |
2019-08-23 14:20 | hgbot | Checkin | |
2019-08-23 14:20 | hgbot | Note Added: 0114249 | |
2019-08-23 14:20 | hgbot | Status | new => resolved |
2019-08-23 14:20 | hgbot | Resolution | open => fixed |
2019-08-23 14:20 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e257d8e482d8931c581b379ff95c56ca050b8c9b [^] |
2019-08-23 14:21 | AugustoMauch | Review Assigned To | => caristu |
2019-08-25 06:50 | hudsonbot | Checkin | |
2019-08-25 06:50 | hudsonbot | Note Added: 0114261 | |
2019-08-29 14:57 | caristu | Note Added: 0114334 | |
2019-08-29 14:57 | caristu | Status | resolved => new |
2019-08-29 14:57 | caristu | Resolution | fixed => open |
2019-09-02 11:05 | hgbot | Checkin | |
2019-09-02 11:05 | hgbot | Note Added: 0114354 | |
2019-09-02 11:13 | AugustoMauch | Status | new => scheduled |
2019-09-02 11:13 | AugustoMauch | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/e257d8e482d8931c581b379ff95c56ca050b8c9b [^] => https://code.openbravo.com/erp/devel/pi/rev/f8c27555c37ca9951d4a7227b20d5daed06ddfc7 [^] |
2019-09-02 11:13 | AugustoMauch | Status | scheduled => resolved |
2019-09-02 11:13 | AugustoMauch | Resolution | open => fixed |
2019-09-02 16:01 | hudsonbot | Checkin | |
2019-09-02 16:02 | hudsonbot | Note Added: 0114365 | |
2019-09-02 19:02 | caristu | Note Added: 0114366 | |
2019-09-02 19:02 | caristu | Status | resolved => closed |
2019-09-02 19:02 | caristu | Fixed in Version | => 3.0PR19Q4 |
2019-11-12 16:12 | alostale | Status | closed => new |
2019-11-12 16:12 | alostale | Resolution | fixed => open |
2019-11-12 16:12 | alostale | Fixed in Version | 3.0PR19Q4 => |
2019-11-12 16:12 | alostale | Severity | minor => critical |
2019-11-12 16:12 | alostale | Status | new => scheduled |
2019-11-12 16:13 | alostale | Status | scheduled => resolved |
2019-11-12 16:13 | alostale | Fixed in Version | => 3.0PR19Q4 |
2019-11-12 16:13 | alostale | Resolution | open => fixed |
2019-11-12 16:13 | alostale | Status | resolved => closed |
Notes |
|
(0114249)
|
hgbot
|
2019-08-23 14:20
|
|
Repository: erp/devel/pi
Changeset: e257d8e482d8931c581b379ff95c56ca050b8c9b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Aug 23 14:18:44 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e257d8e482d8931c581b379ff95c56ca050b8c9b [^]
Fixes issue 41684: Extra widget instances are no longer created
The process that automatically creates widget instances for default widgets was not taking into
account if the user had access to the copied widget class.
---
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
---
|
|
|
|
|
|
|
|
|
(0114354)
|
hgbot
|
2019-09-02 11:05
|
|
Repository: erp/devel/pi
Changeset: f8c27555c37ca9951d4a7227b20d5daed06ddfc7
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 02 11:04:38 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f8c27555c37ca9951d4a7227b20d5daed06ddfc7 [^]
Related with issue 41684: Removes unneeded if clause
An if clause has been removed, it was not needed because an equivalent conditions is already
being checked.
Removed if clause:
if (accessibleWidgetClasses.contains(copy.getWidgetClass().getId())) {
Break statement:
if (!accessibleWidgetClasses.contains(defaultWidget.getWidgetClass().getId())) {
// do not copy a widget if its widget class is not accessible
continue;
}
---
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
---
|
|
|
|
|
|
|
|