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

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

Hi Michael,
bq. You can also have something like /workefforts/\{workEffortId} for 
configured endpoints.

Before I get further with the REST API, based on 
[https://demo-trunk.ofbiz.apache.org/workeffort/control/WorkEffortSummary?workEffortId=9002]
I tried
https://demo-trunk.ofbiz.apache.org/rest/workefforts/%7B9002%7D
https://demo-trunk.ofbiz.apache.org/workefforts/9002
https://demo-trunk.ofbiz.apache.org/workefforts

to no avail (get a 404), what do I miss?



was (Author: jacques.le.roux):
Hi Michael,

bq. You can also have something like /workefforts/{workEffortId} for configured 
endpoints.

Before I get further with the REST API, based on 
https://demo-trunk.ofbiz.apache.org/workeffort/control/WorkEffortSummary?workEffortId=9002
I tried
https://demo-trunk.ofbiz.apache.org/workefforts/{9002}
https://demo-trunk.ofbiz.apache.org/workefforts/9002
https://demo-trunk.ofbiz.apache.org/workefforts
to no avail (get a 404), what do I miss?

> 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: 2024-11-15-ofbiz-rest-api-error.log, 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