Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035066Openbravo ERPC. Securitypublic2017-01-17 10:142017-02-01 16:04
egoitz 
inigosanchez 
urgentminoralways
closedfixed 
5
 
3.0PR16Q3.63.0PR16Q3.6 
alostale
Core
Production - Confirmed Stable
2016-06-15
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/463564b77a032485223cc070cf0aa66f6f0e03d8 [^]
No
0035066: 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.0PR16Q3.5
2017-01-27 01:54inigosanchezReview Assigned To => caristu
2017-01-27 11:53inigosanchezReview Assigned Tocaristu => alostale
2017-01-27 11:53inigosanchezTarget Version3.0PR16Q3.5 => 3.0PR16Q3.6
2017-01-27 12:31hgbotCheckin
2017-01-27 12:31hgbotNote Added: 0093881
2017-01-27 12:31hgbotStatusscheduled => resolved
2017-01-27 12:31hgbotResolutionopen => fixed
2017-01-27 12:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/5249e7453250c738860973027371e405416411b1 [^]
2017-02-01 16:04alostaleNote Added: 0093994
2017-02-01 16:04alostaleStatusresolved => closed
2017-02-01 16:04alostaleFixed in Version => 3.0PR16Q3.6

Notes
(0093881)
hgbot   
2017-01-27 12:31   
Repository: erp/backports/3.0PR16Q3.6
Changeset: 5249e7453250c738860973027371e405416411b1
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Jan 27 01:55:05 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/5249e7453250c738860973027371e405416411b1 [^]

Fixed issue 35066: 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
---
(0093994)
alostale   
2017-02-01 16:04   
tested