Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038694Retail ModulesWeb POSpublic2018-06-04 16:142018-06-21 09:44
jorge-garcia 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR18Q3 
marvintm
No
0038694: Implement the possibility to avoid logins if the system is overloaded
Implement the possibility to avoid logins if the system is overloaded
-
No tags attached.
Issue History
2018-06-04 16:14jorge-garciaNew Issue
2018-06-04 16:14jorge-garciaAssigned To => jorge-garcia
2018-06-04 16:14jorge-garciaTriggers an Emergency Pack => No
2018-06-04 16:29jorge-garciaStatusnew => scheduled
2018-06-05 11:46hgbotCheckin
2018-06-05 11:46hgbotNote Added: 0104936
2018-06-05 11:46hgbotStatusscheduled => resolved
2018-06-05 11:46hgbotResolutionopen => fixed
2018-06-05 11:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a6ce1c8555c23c10320fbc8fc9203af303310c2 [^]
2018-06-21 09:44marvintmReview Assigned To => marvintm
2018-06-21 09:44marvintmStatusresolved => closed
2018-06-21 09:44marvintmFixed in Version => RR18Q3

Notes
(0104936)
hgbot   
2018-06-05 11:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2a6ce1c8555c23c10320fbc8fc9203af303310c2
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 04 16:24:41 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a6ce1c8555c23c10320fbc8fc9203af303310c2 [^]

Fixed issue 38694: Implement the possibility to avoid logins if the system is
overloaded

Two new properties could be added to Openbravo.properties
  * mobileappslogin.allow → Allow/Forbid login from all applications
  * mobileappslogin.maxLoad → Max system load until reject logins from
     applications.

This new implementation could be ignore overriding method ignoreLoginController
in the implementation of a LoginHandler for the application.

The implementation starts working when the property mobileappslogin.maxLoad is
set and it is distinct of 0.00. If the system is overloaded, the login response
returns an error message, if not, it works as usual.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginController.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginControllerInitializer.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginControllerMBean.java
---