Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053569Retail ModulesWeb POS Hardware Managerpublic2023-09-29 16:432023-10-19 14:32
adrianromero 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
RR24Q1 
No
0053569: Improve CORS proxy to return response codes
Now response codes different that HTTP_OK 200 throws an exception, making it impossible to manage the differnt response codes in the client side.
N/A
Improve CORS proxy requests to allow responses to return the remote response code. For backwards compatibility reasons, this new behavior must be activated adding a new property in the request JSON:

{
  ...
  captureresponsecode: true
}
No tags attached.
Issue History
2023-09-29 16:43adrianromeroNew Issue
2023-09-29 16:43adrianromeroAssigned To => adrianromero
2023-09-29 16:43adrianromeroTriggers an Emergency Pack => No
2023-09-29 16:47hgbotNote Added: 0155393
2023-09-29 17:25adrianromeroProposed Solution updated
2023-10-19 14:27hgbotNote Added: 0156072
2023-10-19 14:27hgbotResolutionopen => fixed
2023-10-19 14:27hgbotStatusnew => closed
2023-10-19 14:27hgbotFixed in Version => RR24Q1
2023-10-19 14:27hgbotNote Added: 0156073
2023-10-19 14:32hgbotNote Added: 0156076

Notes
(0155393)
hgbot   
2023-09-29 16:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/97 [^]
(0156072)
hgbot   
2023-10-19 14:27   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/97 [^]
(0156073)
hgbot   
2023-10-19 14:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: aed4df956707dadcc53f72f69b4e9432a3ca587e
Author: Adrián Romero <adrian.romero@openbravo.com>
Date: 19-10-2023 12:19:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/aed4df956707dadcc53f72f69b4e9432a3ca587e [^]

Fixes ISSUE-53569: Improves CORS proxy to return response codes
* Adds new json property to proxy request: captureResponseCode

---
M project/src/com/openbravo/pos/util/HttpResult.java
M project/src/com/openbravo/pos/util/HttpServices.java
M project/src/com/openbravo/poshw/AutoRegisterUrl.java
M project/src/com/openbravo/poshw/HttpServiceServlet.java
---
(0156076)
hgbot   
2023-10-19 14:32   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: a9fa427a210ebfbd486aeb47f056054347e44960
Author: Adrián Romero <adrian.romero@openbravo.com>
Date: 19-10-2023 14:31:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/a9fa427a210ebfbd486aeb47f056054347e44960 [^]

Related ISSUE-53569: Improves CORS proxy to return response codes

---
M bin/poshw.jar
M bin/rev.id
---