Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035065Openbravo ERPC. Securitypublic2017-01-17 10:142017-02-01 16:03
egoitz 
inigosanchez 
urgentminoralways
closedfixed 
5
 
3.0PR16Q4.33.0PR16Q4.3 
alostale
Core
Production - Confirmed Stable
2016-06-15
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/463564b77a032485223cc070cf0aa66f6f0e03d8 [^]
No
0035065: A deactivated organization can not be activated again.
If you deactivate an organization you can not activate it again as the row is not ediable.
-Access on an application with F&B data
-Using admin role deactivate the España sur organization
-Logout and login with the same role.
-check that the España sur organization is not editable so you can not activate it
No tags attached.
blocks defect 0034977 closed inigosanchez A deactivated organization can not be activated again. 
Issue History
2017-01-27 01:01inigosanchezTypedefect => backport
2017-01-27 01:01inigosanchezTarget Version => 3.0PR16Q4.2
2017-01-27 01:48inigosanchezReview Assigned To => caristu
2017-01-27 11:53inigosanchezReview Assigned Tocaristu => alostale
2017-01-27 11:53inigosanchezTarget Version3.0PR16Q4.2 => 3.0PR16Q4.3
2017-01-27 12:05hgbotCheckin
2017-01-27 12:05hgbotNote Added: 0093876
2017-01-27 12:05hgbotStatusscheduled => resolved
2017-01-27 12:05hgbotResolutionopen => fixed
2017-01-27 12:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/09301dc0612e020567d79b816ac219dea3ebfca5 [^]
2017-02-01 16:03alostaleNote Added: 0093993
2017-02-01 16:03alostaleStatusresolved => closed
2017-02-01 16:03alostaleFixed in Version => 3.0PR16Q4.3

Notes
(0093876)
hgbot   
2017-01-27 12:05   
Repository: erp/backports/3.0PR16Q4.3
Changeset: 09301dc0612e020567d79b816ac219dea3ebfca5
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Jan 27 12:04:54 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/09301dc0612e020567d79b816ac219dea3ebfca5 [^]

Fixed issue 35065: A deactivated organization can not be activated again.

When an organization was disabled you could not activate it again as the row was not ediable. This
problem was introduced in a fix related with the code of addWritableAttribute() method of
DefaultJsonDataService class. Before this fix, It was managing the reported case properly (Activate
again a deactivated organization) because this method was handling the particular case of Organizations.

Now is taking into account this particular case (deactivate organizations) in order to manages this
particular case properly. Now it is possible to activate again a deactivate organization.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M src/org/openbravo/dal/core/OBContext.java
M src/org/openbravo/dal/security/SecurityChecker.java
---
(0093993)
alostale   
2017-02-01 16:03   
tested