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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0054404
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorrandom2024-01-19 18:422024-03-19 13:07
Reportercharlotte_vasseurView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutioninvalidFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocberner
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0054404: [OFFLINE] Sometimes POS fails to reconnect after the counter

DescriptionWhen offline, after going back online sometimes POS succeeds to reconnect (See "Reconnect POS OK.mkv")
And sometimes it fails (See "Reconnect POS KO.mkv")
Steps To ReproduceWhile online
Log in POS
Go offline
The counter 30s starts
Go back online
Wait that the counter reaches 0
=> Sometimes POS fails to reconnect
TagsNo tags attached.
Attached Files? file icon Reconnect POS OK.mkv [^] (1,940,386 bytes) 2024-01-19 18:42
? file icon Reconnect POS KO.mkv [^] (1,932,264 bytes) 2024-01-19 18:42

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0161662)
sreehari (developer)
2024-03-05 11:55

Steps to reproduce:
*******************
1.Keep a breakpoint in https://gitlab.com/openbravo/devel/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/integration/remote-server/BackendServer.js?ref_type=heads#L550 [^]
2.keep the network tab in offline in devtools
3.Make the pos go offline by browsing the orders list
4.when 30sec countdown starts, breakpoint will stop every 10 secs, for 1 ping skip the breakpoint, before the second ping turn network tab to no throttling
5.Now even though we have isAvailable = true, we are not connected back due to this failing case this.requestValidationCounter === 0 &&
(0162333)
cberner (developer)
2024-03-19 10:22
edited on: 2024-03-19 10:22

This is intended behavior, the network is checked for instability, basically during the 30 second countdown after going offline, we launch a request each 1/3 of the max time(10 seconds), if any of these requests fail, we consider the network as unstable and keep in offline mode.

Only when all 3 requests are successful the network is considered stable enough and we do the switch to online. The switch to online can always be manually forced, by clicking on the "try now" button on the timer dialog.

(0162363)
charlotte_vasseur (reporter)
2024-03-19 12:39

Hi, as confirmed with Rafa Roda, we are okay with this explanation
Thanks !
(0162364)
cberner (developer)
2024-03-19 13:07

This is intended behavior, so I'm rejecting this issue.

- Issue History
Date Modified Username Field Change
2024-01-19 18:42 charlotte_vasseur New Issue
2024-01-19 18:42 charlotte_vasseur Assigned To => Retail
2024-01-19 18:42 charlotte_vasseur File Added: Reconnect POS OK.mkv
2024-01-19 18:42 charlotte_vasseur Triggers an Emergency Pack => No
2024-01-19 18:42 charlotte_vasseur File Added: Reconnect POS KO.mkv
2024-01-20 11:29 rafaroda Severity minor => major
2024-02-28 08:56 sreehari Assigned To Retail => sreehari
2024-02-28 12:40 sreehari Status new => scheduled
2024-03-05 11:55 sreehari Note Added: 0161662
2024-03-06 11:23 guillermogil Assigned To sreehari => Triage Platform Base
2024-03-06 11:50 guillermogil Status scheduled => resolved
2024-03-06 11:50 guillermogil Resolution open => fixed
2024-03-06 11:50 guillermogil Status resolved => new
2024-03-06 11:50 guillermogil Resolution fixed => open
2024-03-19 10:22 cberner Note Added: 0162333
2024-03-19 10:22 cberner Note Edited: 0162333 View Revisions
2024-03-19 10:22 cberner Note Edited: 0162333 View Revisions
2024-03-19 10:59 cberner Status new => feedback
2024-03-19 12:39 charlotte_vasseur Note Added: 0162363
2024-03-19 13:07 cberner Review Assigned To => cberner
2024-03-19 13:07 cberner Note Added: 0162364
2024-03-19 13:07 cberner Status feedback => closed
2024-03-19 13:07 cberner Resolution open => invalid


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker