Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052986Retail ModulesRetail APIpublic2023-07-18 08:432023-07-27 10:23
alostale 
caristu 
normalminorhave not tried
closedfixed 
5
 
 
No
0052986: broken request link when importing through Business API
When an import request is performed to the API, its response includes a link to query the status of the import process.

This link is broken: instead of the actual openbravo context part it displays "null".
1. Execute an sample postman request included in the exaxamples collection [1] of the org.openbravo.api module.

  -> ERROR: the response looks like
{
    "data": {
        "request": {
            "id": "18C7130A58F04858987B7A04731B8936"
        }
    },
    "links": {
        "href": "null/ws/org.openbravo.api.StatusService?id=18C7130A58F04858987B7A04731B8936"
    
}
}

    

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/tree/master/examples [^]
No tags attached.
related to defect 0049221 closed Triage Platform Conn Modules Avoid using context.url property to obtain the server URL in the swagger documentation 
Issue History
2023-07-18 08:43alostaleNew Issue
2023-07-18 08:43alostaleAssigned To => Triage Platform Conn
2023-07-18 08:43alostaleTriggers an Emergency Pack => No
2023-07-21 14:50hgbotNote Added: 0152801
2023-07-27 10:18alostaleRelationship addedrelated to 0049221
2023-07-27 10:18alostaleAssigned ToTriage Platform Conn => caristu
2023-07-27 10:23hgbotResolutionopen => fixed
2023-07-27 10:23hgbotStatusnew => closed
2023-07-27 10:23hgbotNote Added: 0152908
2023-07-27 10:23hgbotNote Added: 0152909

Notes
(0152801)
hgbot   
2023-07-21 14:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/166 [^]
(0152908)
hgbot   
2023-07-27 10:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: e7b5c50698bb2f3af0ae0f9e0e5558b7f661a27d
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 21-07-2023 14:47:58
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/e7b5c50698bb2f3af0ae0f9e0e5558b7f661a27d [^]

fixes ISSUE-52986: replace context.url property usage

  Get the context information from the WS request itself instead of
using context.url property. This way we avoid providing a broken link in
the import response in case that property is not set.

---
M src/org/openbravo/api/service/ApiRequestStatusWebService.java
---
(0152909)
hgbot   
2023-07-27 10:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/166 [^]