You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2024/11/12 09:51:00 UTC

[jira] [Comment Edited] (OFBIZ-13152) Inconsistent Error Handling for Entity Creation via Exported Service

    [ https://issues.apache.org/jira/browse/OFBIZ-13152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897426#comment-17897426 ] 

Jacques Le Roux edited comment on OFBIZ-13152 at 11/12/24 9:50 AM:
-------------------------------------------------------------------

OK thanks,

So other questions:
You speak about "swagger-ui". Is it an use of REST-API app in OFBiz? Because I just tried it and got a 404? Disclaimer : I don't much about the REST API  (I never used it and did not participate to its elaboration) . If you do, how do you use it? Else, as I never used the "swagger-ui", how to you use it?

I'd be interested by you 2nd point. I mean have you a log excerpt which would help us to understand the underlying issue?


was (Author: jacques.le.roux):
OK thanks,

So other questions:
You speak about "swagger-ui". Is it an use of REST-API app in OFBiz? Because I just tried it and got a 404? Disclaimer : I don't much (I never used it and did not participate much to its elaboration) about the REST API. If you do, how do you use it? Else, as I never used the "swagger-ui", how to you use it?

I'd be interested by you 2nd point. I mean have you a log excerpt which would help us to understand the underlying issue?

> Inconsistent Error Handling for Entity Creation via Exported Service
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-13152
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13152
>             Project: OFBiz
>          Issue Type: Bug
>          Components: rest-api
>            Reporter: Arashpreet Singh
>            Assignee: Jacques Le Roux
>            Priority: Major
>         Attachments: trunk-logs.txt
>
>
> There appears to be a problem with the OFBiz error-handling mechanism when creating an entity using an exported service. Initially, if incorrect input data is provided, OFBiz correctly returns a meaningful error message from the backend. However, upon resubmitting the same request without any changes, instead of returning the same meaningful error, the system responds with a 500 internal server error and an HTML response.
> Interestingly, when OFBiz is restarted, the first request with the same incorrect data again returns a proper, meaningful error message. But all subsequent requests with the same data continue to produce a 500 response, which is not ideal for consistent error reporting.
> This issue impacts debugging and error handling for services that rely on accurate back-end responses. The expected behavior would be to consistently return the meaningful error for all requests, regardless of whether OFBiz has been restarted.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)