Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036379Openbravo ERPC. Securitypublic2017-06-30 13:322017-09-21 16:49
jonibc 
markmm82 
highminoralways
closedfixed 
5
 
3.0PR17Q4 
aferraz
Core
No
0036379: Org Access is not added for inactive orgs creating new Role
When a new Role (Automatic) is created, all org access are given for the existing organizations, but not for those inactive.
Create a new Organization and uncheck active flag (Create an Organization using OBProvider).

Add an automatic Role, check that Org Access for the inactive organization has not been created.

If the organization is set as Active, it is needed to create the Org Access manually.
Include also inactive organizations in RoleEventHandler. Change OBCriteria to allow filter over inactive organizations. (By default OBCriteria applies filter active='Y')
No tags attached.
related to defect 0030057 closed aferraz Org Access added automatically to all roles 
Issue History
2017-06-30 13:32jonibcNew Issue
2017-06-30 13:32jonibcAssigned To => platform
2017-06-30 13:32jonibcModules => Core
2017-06-30 13:32jonibcResolution time => 1500069600
2017-06-30 13:32jonibcTriggers an Emergency Pack => No
2017-06-30 13:32jonibcIssue Monitored: jonibc
2017-06-30 13:35jonibcRelationship addedrelated to 0030057
2017-06-30 13:51jonibcSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15446#r15446
2017-06-30 15:01caristuAssigned Toplatform => Triage Finance
2017-06-30 15:01caristuCategoryA. Platform => C. Security
2017-07-03 09:35vmromanosStatusnew => scheduled
2017-07-03 09:35vmromanosAssigned ToTriage Finance => collazoandy4
2017-07-03 09:36vmromanosSeveritymajor => minor
2017-07-07 18:49markmm82Assigned Tocollazoandy4 => markmm82
2017-07-07 20:11markmm82Note Added: 0097960
2017-07-10 16:36hgbotCheckin
2017-07-10 16:36hgbotNote Added: 0097985
2017-07-10 16:36hgbotStatusscheduled => resolved
2017-07-10 16:36hgbotResolutionopen => fixed
2017-07-10 16:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494 [^]
2017-07-10 16:36aferrazReview Assigned To => aferraz
2017-07-10 16:36aferrazNote Added: 0097986
2017-07-10 16:36aferrazStatusresolved => closed
2017-07-10 16:36aferrazFixed in Version => 3.0PR17Q4
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099263

Notes
(0097960)
markmm82   
2017-07-07 20:11   
Test Plan:
As Group Admin
1. Go to Organization window and set F&B España - Región Sur inactive (Active flag = false)
2. Go to Role windows and create a new role:
   Client = F&B International Group
   Organization = *
   Name = RoleWithClient+OrgAccess
   User Level = Client+Organization
   Save.
Notice after save 8 new entries has been created in Org Access tab. You will find also F&B España - Región Sur although it is inactive.

3. Go to Role windows and create a new role:
   Client = F&B International Group
   Organization = *
   Name = RoleWithOrgAccess
   User Level = Organization
   Save.
Notice after save 8 new entries has been created in Org Access tab. You will find also F&B España - Región Sur although it is inactive.

4. Go to Role windows and create a new role:
   Client = F&B International Group
   Organization = *
   Name = RoleWithClientAccess
   User Level = Client
   Save.
Notice after save only one entry is created for * Organization in the Org Acces tab.
(0097985)
hgbot   
2017-07-10 16:36   
Repository: erp/devel/pi
Changeset: b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Jul 07 13:46:36 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494 [^]

Fixes issue 36379: Org Access is not added for inactive orgs creating new Role

When a new Role was created, all org access are given for the existing organizations,
but not for those inactive.

It was caused because OBCriteria applies filter active='Y' by default.

To fix it, criteria is set to not filter by Active organizations, this way it also takes
into account those inactive organizations.

---
M src/org/openbravo/event/RoleEventHandler.java
---
(0097986)
aferraz   
2017-07-10 16:36   
Code review + Testing OK
(0099263)
hudsonbot   
2017-09-21 16:49   
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/9750b78d3e5c [^]
Maturity status: Test