Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0037293 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | always | 2017-11-14 13:45 | 2017-11-17 15:39 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | inigosanchez | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 0559fa5e9e84 | ||||
Projection | none | ETA | none | Target Version | 3.0PR17Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - QA Approved | |||||||
Regression date | 2017-04-06 | |||||||
Regression introduced in release | 3.0PR17Q3 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/c4a5973bba10 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0037293: It is not possible to do login using a role if the role has got a deactivated organization | |||||||
Description | when a role has got one deactivate organization, in Role > Org Access, it is not possible to do login. Error is returned: Error occured: org.openbravo.base.exception.OBException: java.lang.IllegalArgumentException: Error when saving default values | |||||||
Steps To Reproduce | in F&B: . do login with user Openbravo . go to Role: . record: F&B España, S.A - Employee . go to org access tab: . record: F&B España - Región Norte active='N' . change the role to F&B España, S.A - Employee Error is returned | |||||||
Proposed Solution | Take into account the "is active" flag in the queries launched by RoleInfo class. Since the changeset[1] it is using a Query instead of an OBQuery to retrieve the role's organization and warehouses data. [1] https://code.openbravo.com/erp/devel/pi/rev/c4a5973bba10 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0100550) hgbot (developer) 2017-11-16 12:37 |
Repository: erp/backports/3.0PR17Q4 Changeset: 0559fa5e9e84e2b501be3d0cc62904378fc306f5 Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com> Date: Thu Nov 16 12:36:41 2017 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR17Q4/rev/0559fa5e9e84e2b501be3d0cc62904378fc306f5 [^] Fixed issue 37293: Deactivated orgs are displayed in the user profile widget The problem was caused by the "Improve scalability of the login process" project. When improving the performance of the query that return the complete organizations list for the current user, the OBQuery instance used to generate it was replaced with a Query instance. The first includes by default the filter by is active. To fix the problem this filter must be added manually in the query. Now the problem has been resolved by take into account this filter. Besides the same problem is detected in other query related with deactivated warehouses so it is fixed too. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/RoleInfo.java --- |
(0100597) caristu (developer) 2017-11-17 15:39 |
Code reviewed + tested OK. |
Issue History | |||
Date Modified | Username | Field | Change |
2017-11-14 18:22 | caristu | Type | defect => backport |
2017-11-14 18:22 | caristu | Target Version | => 3.0PR17Q4 |
2017-11-16 10:12 | inigosanchez | Assigned To | platform => inigosanchez |
2017-11-16 12:37 | hgbot | Checkin | |
2017-11-16 12:37 | hgbot | Note Added: 0100550 | |
2017-11-16 12:37 | hgbot | Status | scheduled => resolved |
2017-11-16 12:37 | hgbot | Resolution | open => fixed |
2017-11-16 12:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR17Q4/rev/0559fa5e9e84e2b501be3d0cc62904378fc306f5 [^] |
2017-11-16 16:45 | caristu | Severity | major => minor |
2017-11-17 15:39 | caristu | Note Added: 0100597 | |
2017-11-17 15:39 | caristu | Status | resolved => closed |
2017-11-17 15:39 | caristu | Fixed in Version | => 3.0PR17Q4 |
Copyright © 2000 - 2009 MantisBT Group |