Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033745Retail ModulesWeb POSpublic2016-08-18 18:332016-08-19 09:24
adrianromero 
Retail 
urgentmajorhave not tried
closedduplicate 
5
 
 
adrianromero
No
0033745: WEB POS login requests are executed serveral times in case of timeout
When login in Web POS, if the server side is slow handling the login request several login requests are performed. This can cause that Web POS can try to reopen an open session and the error "Session for the ERP already exists" is displayed in the Web POS.

See screenshot attached
To reproduce this issue is needed to simulate slow handling of login in the server side. For example running the server in debug mode and adding a breakpoint at the beginning of the doPost() method of the class MobileCoreLoginHandler in org.openbravo.mobile.core.

Then try to login in Web POS and wait for the breakpoint to be reached, once is reached for the first time wait for few seconds to continue the execution.

Observe that the breakpoint will be reached several times more. Continue the execution of these repeated requests or disable the breakpoint

Observe in the client side it appears the message "Session for the ERP already exists"
As a workaround it can be increased the timeout in the ajax request of the login function in the javascript ob-terminal-model.js in org.openbravo.mobile.core.
No tags attached.
duplicate of design defect 0033665RR16Q4 closed mtaal POSLoginHandler call has a timeout which is too short and should not retry 
png Captura de pantalla de 2016-08-18 18:31:42.png (114,504) 2016-08-18 18:34
https://issues.openbravo.com/file_download.php?file_id=9733&type=bug
png
Issue History
2016-08-18 18:33adrianromeroNew Issue
2016-08-18 18:33adrianromeroAssigned To => Retail
2016-08-18 18:33adrianromeroResolution time => 1472076000
2016-08-18 18:33adrianromeroTriggers an Emergency Pack => No
2016-08-18 18:34adrianromeroFile Added: Captura de pantalla de 2016-08-18 18:31:42.png
2016-08-19 08:57migueldejuanaRelationship addedduplicate of 0033665
2016-08-19 09:24adrianromeroReview Assigned To => adrianromero
2016-08-19 09:24adrianromeroStatusnew => closed
2016-08-19 09:24adrianromeroResolutionopen => duplicate

There are no notes attached to this issue.