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

Arashpreet Singh commented on OFBIZ-13152:
------------------------------------------

 
{{<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server 
Error</title><style type="text/css">body 
\{font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b 
\{color:white;background-color:#525D76;} h1 \{font-size:22px;} h2 
\{font-size:16px;} h3 \{font-size:14px;} p \{font-size:12px;} a \{color:black;} 
.line 
\{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP
 Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> 
Status Report</p><p><b>Message</b> Internal Server 
Error</p><p><b>Description</b> The server encountered an unexpected condition 
that prevented it from fulfilling the request.</p><hr class="line" /><h3>Apache 
Tomcat/9.0.69</h3></body></html>}}

> 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
>            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)

Reply via email to