Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035527Retail ModulesWeb POSpublic2017-03-06 12:462017-04-26 23:15
malsasua 
jorge-garcia 
normalmajoralways
closedfixed 
20Community Appliance
 
RR17Q1.1RR17Q1.1 
guilleaer
Production - Confirmed Stable
2016-01-13
RR16Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df9f4b6ce7c2bfa7ec5cfa0379417e054fcf9401 [^]
No
0035527: WEBPOS Session is expired
the session is expired in WEBPOS although preference "Web POS Session Timeout" is configured with value 0
in backend
- preference "Web POS Session Timeout" -> value 0
(change the session timeout of tomcat to 1 minute):
as system administrator:
- window: AD Implementation Mapping:
 . record: Timeout
 . tab: parameter: timeout
    . change from 60 to 1
(compile and restart tomcat)

in WEBPOS:
. do login
(wait 1 minute)
. search a receipt:
message is displayed:
"The connection was restored. However, in the meantime, your session timed out. You must login again now to ensure proper synchronization. Your pending tickets will be saved."

Error: session timeout should not be expired
No tags attached.
blocks defect 0035436 closed jorge-garcia WEBPOS Session is expired 
Issue History
2017-03-15 12:50jorge-garciaTypedefect => backport
2017-03-15 12:50jorge-garciaTarget Version => RR17Q1.1
2017-04-26 11:57hgbotCheckin
2017-04-26 11:57hgbotNote Added: 0096194
2017-04-26 11:57hgbotStatusscheduled => resolved
2017-04-26 11:57hgbotResolutionopen => fixed
2017-04-26 11:57hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/63bad4d3013f6bb51ddb166252512190085cad1c [^] => http://code.openbravo.com/retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal/rev/53ebe81b571316152be7fafcd8c3a2d3860e5175 [^]
2017-04-26 23:15guilleaerReview Assigned To => guilleaer
2017-04-26 23:15guilleaerStatusresolved => closed
2017-04-26 23:15guilleaerFixed in Version => RR17Q1.1

Notes
(0096194)
hgbot   
2017-04-26 11:57   
Repository: retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal
Changeset: 53ebe81b571316152be7fafcd8c3a2d3860e5175
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Apr 26 11:56:30 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal/rev/53ebe81b571316152be7fafcd8c3a2d3860e5175 [^]

Fixed issue 35527: WEBPOS Session is expired

The solution is to reimplement a request to the backend for WebPOS session.
This request is not done if the preference sessionTimeout is set or the
preference OBPOS_SessionExpiration is set to ‘Y’.

---
M src/org/openbravo/retail/posterminal/term/Terminal.java
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---