Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032702Openbravo ERPA. Platformpublic2016-04-19 10:022016-06-17 19:37
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0PR16Q3 
mtaal
Core
No
0032702: Store server backoffice enablement
See wiki page:
http://wiki.openbravo.com/wiki/Projects:Store_Server_BackOffice_Enablement [^]

The following changes are needed in core to support restricting the access to the backoffice in the store servers:
- Discerning whether the current server is a central or a store server
- If a preference is set, only grant access to users with the System Admin role
See description
No tags attached.
related to defect 0034499 closed caristu Openbravo ERP [clustering] CachedPreference feature is not supported on clustered environments 
related to defect 0038478 closed AugustoMauch Retail Modules SS Restrict ERP access means that certain backoffice windows in WebPOS can not be opened 
Issue History
2016-04-19 10:02AugustoMauchNew Issue
2016-04-19 10:02AugustoMauchAssigned To => mtaal
2016-04-19 10:02AugustoMauchTriggers an Emergency Pack => No
2016-04-19 10:02AugustoMauchIssue generated from0031658
2016-04-19 10:02AugustoMauchProjectRetail Modules => Openbravo ERP
2016-04-19 10:02AugustoMauchAssigned Tomtaal => AugustoMauch
2016-04-19 10:04AugustoMauchModules => Core
2016-04-19 10:04AugustoMauchCategoryWeb POS => A. Platform
2016-04-21 09:08AugustoMauchReview Assigned To => mtaal
2016-04-21 09:08AugustoMauchStatusnew => scheduled
2016-04-21 09:09hgbotCheckin
2016-04-21 09:09hgbotNote Added: 0085811
2016-04-21 09:09hgbotStatusscheduled => resolved
2016-04-21 09:09hgbotResolutionopen => fixed
2016-04-21 09:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/32a1ccfd28ccd6afa151b4c72308b7e7ce7f3d49 [^]
2016-04-21 10:10hgbotCheckin
2016-04-21 10:10hgbotNote Added: 0085817
2016-04-29 08:16alostaleRelationship addedcauses 0029771
2016-04-29 08:16alostaleRelationship deletedcauses 0029771
2016-04-29 17:31mtaalNote Added: 0086094
2016-04-29 17:31mtaalStatusresolved => closed
2016-04-29 17:31mtaalFixed in Version => 3.0PR16Q3
2016-06-17 19:37hudsonbotCheckin
2016-06-17 19:37hudsonbotNote Added: 0087475
2016-06-17 19:37hudsonbotCheckin
2016-06-17 19:37hudsonbotNote Added: 0087476
2016-11-14 17:09caristuRelationship addedrelated to 0034499
2018-05-02 16:12AugustoMauchRelationship addedrelated to 0038478

Notes
(0085811)
hgbot   
2016-04-21 09:09   
Repository: erp/devel/pi
Changeset: 32a1ccfd28ccd6afa151b4c72308b7e7ce7f3d49
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Apr 19 10:13:37 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/32a1ccfd28ccd6afa151b4c72308b7e7ce7f3d49 [^]

Fixes issue 32702: Access to be backend can be restricted in the store servers

If the RestrictErpAccessInStoreServer preference is set to Y, only users with the System Administrator role will be granted access to the backend in the store servers.

Summary of the changes:
- ServerController & ServerControllerHandler: New classes to be able to know in core whether the current server is a central or a store server.
- CachedPreference: The value of the RestrictErpAccessInStoreServer is cached.
- UserInfoWidgetActionHandler: Controls that if the access is restricted only the System Administrator role should be available in the role combo
- index.jsp: Controls that if the access is restricted and the current user is not using the System Administrator role, the backend workspace is not shown.
- HttpSecureAppServlet: Controls that if the access is restricted the default role of a user that logs in is System Administrator.
- LoginHandler: Controls that login is denied for users that do not have the System Administrator role if access is restricted in the store servers. For users that do have the System Administrator role it makes sure only that role is used.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/CachedPreference.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/index.jsp
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
M src/org/openbravo/base/secureApp/LoginHandler.java
A src/org/openbravo/server/ServerController.java
A src/org/openbravo/server/ServerControllerHandler.java
---
(0085817)
hgbot   
2016-04-21 10:10   
Repository: erp/devel/pi
Changeset: 25ae8eca278476aec3446b2ac9d6980120575d02
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Apr 21 10:07:35 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/25ae8eca278476aec3446b2ac9d6980120575d02 [^]

Related with issue 32702: Improves JavaDoc

---
M src/org/openbravo/server/ServerControllerHandler.java
---
(0086094)
mtaal   
2016-04-29 17:31   
Reviewed and tested
(0087475)
hudsonbot   
2016-06-17 19:37   
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/0dc7be081b1c [^]
Maturity status: Test
(0087476)
hudsonbot   
2016-06-17 19:37   
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/0dc7be081b1c [^]
Maturity status: Test