Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047024
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2021-06-08 14:132021-08-12 09:26
ReporterjetxarriView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR21Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR20Q3.4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047024: Session timeout is not working properly

DescriptionSession 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 SolutionRemove 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);
    }
TagsNOR
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 Triggers an Emergency Pack => No
2021-06-08 14:14 jetxarri Tag Attached: NOR
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 Note Added: 0129827
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
Powered by Mantis Bugtracker