Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056648Retail ModulesEvents for Clientpublic2024-10-03 18:132024-10-07 10:37
njimenez 
njimenez 
normalmajoralways
closedfixed 
5
 
RR25Q1 
No
0056648: Client event api requests makes the terminal to go offline
In case an external system subscribed to any client event api making use of the http protocol with authorization type oauth 2.0, the terminal goes offline sometimes.

This issue is reproduced when the authorization call to the provider server gets a timeout. While this request fail the remote server execute the transition to offline logic.

It is not required as the backed server is being used as middleware with the oauth2 authorization server.
1. Configure an external system with protocol http frontend.
2. In http for client subtab set the authorization type to OAuth 2.0
3. Configure the parameters of a server that will not answer the request
4. Make use of this external system on an client api at events subscription window.
5. Execute the logic of the api to force a call to the external system
6. See how while receiving a timeout on the request the remote server makes the terminal to go offline
.
No tags attached.
Issue History
2024-10-03 18:13njimenezNew Issue
2024-10-03 18:13njimenezAssigned To => njimenez
2024-10-03 18:13njimenezTriggers an Emergency Pack => No
2024-10-04 09:55hgbotNote Added: 0169987
2024-10-07 10:37hgbotNote Added: 0170038
2024-10-07 10:37hgbotResolutionopen => fixed
2024-10-07 10:37hgbotStatusnew => closed
2024-10-07 10:37hgbotFixed in Version => RR25Q1
2024-10-07 10:37hgbotNote Added: 0170039

Notes
(0169987)
hgbot   
2024-10-04 09:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/754 [^]
(0170038)
hgbot   
2024-10-07 10:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/754 [^]
(0170039)
hgbot   
2024-10-07 10:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c79a48c53023cb1ff44cebe172cdd2b612097d05
Author: Natalia Jiménez <n.jimenez@orisha.com>
Date: 07-10-2024 10:08:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c79a48c53023cb1ff44cebe172cdd2b612097d05 [^]

Fixed ISSUE-56648: Added remote server for oauth2 request on external systems to avoid switching to offline in case of errors

---
A web-test/integration/remote-server/OAuth2Server.test.js
A web/org.openbravo.mobile.core/app/integration/remote-server/OAuth2Server.js
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
---