Openbravo Issue Tracking System - Modules
View Issue Details
0049221ModulesOpen APIpublic2022-05-05 08:572023-06-07 14:55
caristu 
Triage Platform Conn 
highminorhave not tried
closedfixed 
5
 
 
0049221: Avoid using context.url property to obtain the server URL in the swagger documentation
Currently the context.url property is read from the Openbravo.properties file to get the server URL that is required to be set in the swagger documentation to be able to work with the API.

This URL must be obtained in a different way so the documentation can be generated with the correct link out of the box, i.e., without requiring to configurate that value in Openbravo.properties.

.
Replace the retrieval of the context.url[1] with another solution to get the server URL that does not depend on any configuration, i.e., it should be automatic.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.service.openapi/-/blob/master/src/org/openbravo/service/openapi/provider/OpenAPIProcessor.java#L95 [^]
No tags attached.
has duplicate defect 0050320 closed Triage Platform Conn Modules Server URL in swagger should be automatically calculated 
related to defect 0052986 closed caristu Retail Modules broken request link when importing through Business API 
Issue History
2022-05-05 08:57caristuNew Issue
2022-05-05 08:57caristuAssigned To => Triage Platform Conn
2022-05-05 10:03caristuDescription Updatedbug_revision_view_page.php?rev_id=24022#r24022
2022-05-05 10:03caristuProposed Solution updated
2022-05-05 10:04caristuProposed Solution updated
2022-05-05 12:32shuehnerIssue Monitored: shuehner
2023-06-01 16:06caristuRelationship addedhas duplicate 0050320
2023-06-01 16:27martinsdanIssue Monitored: martinsdan
2023-06-05 13:58hgbotNote Added: 0150749
2023-06-07 14:55hgbotNote Added: 0150892
2023-06-07 14:55hgbotResolutionopen => fixed
2023-06-07 14:55hgbotStatusnew => closed
2023-06-07 14:55hgbotNote Added: 0150893
2023-07-27 10:18alostaleRelationship addedrelated to 0052986

Notes
(0150749)
hgbot   
2023-06-05 13:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.openapi/-/merge_requests/8 [^]
(0150892)
hgbot   
2023-06-07 14:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.openapi/-/merge_requests/8 [^]
(0150893)
hgbot   
2023-06-07 14:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.openapi [^]
Changeset: 3295177460896d3292bf472fc866d10ccd8853a6
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-06-2023 13:57:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.openapi/-/commit/3295177460896d3292bf472fc866d10ccd8853a6 [^]

fixes BUG-49221: replace context.url property usage with relative context path

---
M src/org/openbravo/service/openapi/provider/OpenAPIProcessor.java
---