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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052986
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APIminorhave not tried2023-07-18 08:432023-07-27 10:23
ReporteralostaleView Statuspublic 
Assigned Tocaristu 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0052986: broken request link when importing through Business API

DescriptionWhen 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".
Steps To Reproduce1. 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 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0049221 closedTriage Platform Conn Modules Avoid using context.url property to obtain the server URL in the swagger documentation 

-  Notes
(0152801)
hgbot (developer)
2023-07-21 14:50

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/166 [^]
(0152908)
hgbot (developer)
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 (developer)
2023-07-27 10:23

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/166 [^]

- Issue History
Date Modified Username Field Change
2023-07-18 08:43 alostale New Issue
2023-07-18 08:43 alostale Assigned To => Triage Platform Conn
2023-07-18 08:43 alostale Triggers an Emergency Pack => No
2023-07-21 14:50 hgbot Note Added: 0152801
2023-07-27 10:18 alostale Relationship added related to 0049221
2023-07-27 10:18 alostale Assigned To Triage Platform Conn => caristu
2023-07-27 10:23 hgbot Resolution open => fixed
2023-07-27 10:23 hgbot Status new => closed
2023-07-27 10:23 hgbot Note Added: 0152908
2023-07-27 10:23 hgbot Note Added: 0152909


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker