Openbravo Issue Tracking System - POS2
View Issue Details
0048194POS2POSpublic2021-12-06 13:572021-12-21 13:13
jmelin 
Retail 
urgentmajoralways
closedopen 
5
 
 
caristu
No
0048194: JIRA 2541 - Multiple calls to CheckTerminalAuth at the end of an order
After completed an order, we can see multiple calls to CheckTerminalAuth in network tab of Chrome.

Regarding wiki, this is used to synchronize log messages, but it should be only once per 30s (can be configured).
Connect to POS and open the devtools in Chrome
Create an order and pay
Before completing the sales order, clean the network data
Complete the order => you can see several calls to CheckTerminalAuth
No tags attached.
related to feature request 0048292 acknowledged Retail Review if the amount of requests for checking the terminal authentication can be reduced 
Issue History
2021-12-06 13:57jmelinNew Issue
2021-12-06 13:57jmelinAssigned To => Retail
2021-12-06 13:57jmelinTriggers an Emergency Pack => No
2021-12-21 13:10caristuRelationship addedrelated to 0048292
2021-12-21 13:13caristuReview Assigned To => caristu
2021-12-21 13:13caristuNote Added: 0133876
2021-12-21 13:13caristuStatusnew => closed
2021-12-21 13:14caristuNote Edited: 0133876bug_revision_view_page.php?bugnote_id=0133876#r23438

Notes
(0133876)
caristu   
2021-12-21 13:13   
(edited on: 2021-12-21 13:14)
This is not an issue as it is working as expected: currently a request to CheckTerminalAuth is done per every message that is synchronized with the backend.

See here: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/authentication/checkTerminalAuth.js#L106 [^]

Reported a feature request(0048292) to review if it is possible to improve the existing logic in order to reduce the number of CheckTerminalAuth requests