Openbravo Issue Tracking System - Retail Modules | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0047024 | Retail Modules | Web POS | public | 2021-06-08 14:13 | 2021-08-12 09:26 |
| Reporter | jetxarri | ||||
| Assigned To | ranjith_qualiantech_com | ||||
| Priority | high | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | RR20Q3.4 | Fixed in Version | RR21Q3 | ||
| Merge Request Status | approved | ||||
| Review Assigned To | |||||
| OBNetwork customer | Gold | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0047024: Session timeout is not working properly | ||||
| Description | Session timeout is not working properly. The session timeout is only removed and created a new one when enyo.gesture.down is executed and this is not true. For example if the user read a barcode, the timer should be reseted. | ||||
| Steps To Reproduce | -configure preference "Web POS Session Timeout" to 1 minute -login into Web POS -do nothing for 30 seconds -read a barcode -after 30 second the session is over and lock is happening | ||||
| Proposed Solution | Remove current timeout org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/login/model/login-model.js --> setTerminalLockTimeout( And create more global. For example function setTerminalLockTimeout( sessionTimeoutMinutes, sessionTimeoutMilliseconds ) { OB.debug( 'Terminal lock timer reset (' + sessionTimeoutMinutes + ' minutes)' ); clearTimeout(OB.NORCUS.timeoutId); OB.NORCUS.timeoutId = setTimeout(function() { OB.warn( 'The terminal was not used for ' + sessionTimeoutMinutes + ' minutes. Locking the terminal' ); OB.MobileApp.model.lock(); }, sessionTimeoutMilliseconds); } var sessionTimeoutMinutes = OB.MobileApp.model.get('terminal') .sessionTimeout; if (sessionTimeoutMinutes) { const sessionTimeoutMilliseconds = sessionTimeoutMinutes * 60 * 1000; const renewTimer = () => { setTerminalLockTimeout( sessionTimeoutMinutes, sessionTimeoutMilliseconds ); }; // set the terminal lock timeout renewTimer(); window.document.ontouchend = _.debounce(renewTimer, 250); window.document.onkeypress = _.debounce(renewTimer, 250); window.document.onclick = _.debounce(renewTimer, 250); } | ||||
| Additional Information | |||||
| Tags | NOR | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2021-06-08 14:13 | jetxarri | New Issue | |||
| 2021-06-08 14:13 | jetxarri | Assigned To | => Retail | ||
| 2021-06-08 14:13 | jetxarri | OBNetwork customer | => No | ||
| 2021-06-08 14:13 | jetxarri | Triggers an Emergency Pack | => No | ||
| 2021-06-08 14:14 | jetxarri | Tag Attached: NOR | |||
| 2021-06-08 21:34 | rafaroda | OBNetwork customer | No => Gold | ||
| 2021-06-08 21:34 | rafaroda | Resolution time | => 1623967200 | ||
| 2021-06-16 17:42 | marvintm | Resolution time | 1623967200 => 1624572000 | ||
| 2021-06-21 06:18 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
| 2021-06-22 10:15 | ranjith_qualiantech_com | Status | new => scheduled | ||
| 2021-06-28 07:58 | hgbot | Merge Request Status | => open | ||
| 2021-06-28 07:58 | hgbot | Note Added: 0129827 | |||
| 2021-06-29 07:35 | hgbot | Merge Request Status | open => approved | ||
| 2021-06-29 07:35 | hgbot | Resolution | open => fixed | ||
| 2021-06-29 07:35 | hgbot | Status | scheduled => closed | ||
| 2021-06-29 07:35 | hgbot | Note Added: 0129886 | |||
| 2021-06-29 07:35 | hgbot | Fixed in Version | => RR21Q3 | ||
| 2021-06-29 07:35 | hgbot | Note Added: 0129887 | |||
| 2021-08-12 09:26 | sebastien_liron | File Added: 47024.diff | |||
| 2021-08-12 09:26 | sebastien_liron | File Deleted: 47024.diff | |||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||