Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0047024 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Retail Modules] Web POS | minor | always | 2021-06-08 14:13 | 2021-08-12 09:26 | |||
| Reporter | jetxarri | View Status | public | |||||
| Assigned To | ranjith_qualiantech_com | |||||||
| Priority | high | Resolution | fixed | Fixed in Version | RR21Q3 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | |||||
| Projection | none | ETA | none | Target Version | RR20Q3.4 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| 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); } | |||||||
| Tags | NOR | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0129827) hgbot (developer) 2021-06-28 07:58 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/490 [^] |
|
(0129886) hgbot (developer) 2021-06-29 07:35 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/490 [^] |
|
(0129887) hgbot (developer) 2021-06-29 07:35 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 58e47439d614440d749176191f887d78bb35768e Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-06-29T05:35:02+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/58e47439d614440d749176191f887d78bb35768e [^] Fixed ISSUE-47024: Session timeout should be cleared if product is scanned through Scanner --- M web/org.openbravo.retail.posterminal/js/login/model/login-model.js --- |
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 | |
| Copyright © 2000 - 2009 MantisBT Group |