Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058074Retail ModulesRetail APIpublic2025-02-25 17:512025-03-07 13:04
sofidossant 
eugen_hamuraru 
normalminoralways
closedfixed 
5
pi 
 
No
0058074: Error SWAGGER in first login
When i try to login to the Swagger/API with this

https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/api?urls.primaryName=Business%20API%20-%20Master%20Data#/ [^]

and im loging in livebuilds (https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ [^]) in the same incognito tab that i put the last url i can see the error :
"Errors
Hide
 
Parser error on line 25
end of the stream or a document separator is expected"
1- Open a new window with : https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ [^]
Loging with openbravo credentials

2-In another window open this URL :
https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/api?urls.primaryName=Business%20API%20-%20Master%20Data#/ [^]
And see the error that i atacched.
No tags attached.
jpeg WhatsApp Image 2025-02-25 at 13.50.14.jpeg (76,317) 2025-02-25 17:51
https://issues.openbravo.com/file_download.php?file_id=20966&type=bug
jpeg
Issue History
2025-02-25 17:51sofidossantNew Issue
2025-02-25 17:51sofidossantAssigned To => Retail
2025-02-25 17:51sofidossantFile Added: WhatsApp Image 2025-02-25 at 13.50.14.jpeg
2025-02-25 17:51sofidossantTriggers an Emergency Pack => No
2025-02-26 09:42guillermogilAssigned ToRetail => Triage Platform Conn
2025-03-03 09:06hgbotNote Added: 0176340
2025-03-05 16:55hgbotNote Added: 0176484
2025-03-07 11:09hgbotNote Added: 0176552
2025-03-07 13:04hgbotResolutionopen => fixed
2025-03-07 13:04hgbotStatusnew => closed
2025-03-07 13:04hgbotNote Added: 0176553
2025-03-07 13:04hgbotNote Added: 0176554
2025-03-07 13:04caristuAssigned ToTriage Platform Conn => eugen_hamuraru

Notes
(0176340)
hgbot   
2025-03-03 09:06   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.service.openapi/-/merge_requests/21 [^]
(0176484)
hgbot   
2025-03-05 16:55   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1568 [^]
(0176552)
hgbot   
2025-03-07 11:09   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1568 [^]
(0176553)
hgbot   
2025-03-07 13:04   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.service.openapi [^]
Changeset: 36ab81bea79df93475c48db4f82a4a8c2d5b9d7d
Author: Eugen Hamuraru <eugen.hamuraru@openbravo.com>
Date: 07-03-2025 12:04:19
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.service.openapi/-/commit/36ab81bea79df93475c48db4f82a4a8c2d5b9d7d [^]

Fixes BUG-58074: error in Swagger having a backoffice session opened in other tab

  When accessing the API (Swagger) page for the first time being previously logged in the backoffice in a different browser tab, the request to access to get the API definition failed because the session gets invalidated.

  To fix this, now we manually check if the basic authorization must be re-requested before showing the Swagger UI page and in case the authorization fails now a proper message is returned explaining that the access is not authorized.
  

---
M src/org/openbravo/service/openapi/SwaggerUIServlet.java
---
(0176554)
hgbot   
2025-03-07 13:04   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.service.openapi/-/merge_requests/21 [^]