[jira] [Commented] (OFBIZ-5409) JSON Response does not set http status on error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5409) JSON Response does not set http status on error

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-5409:
----------------------------------------

I agree with Adrian for the static field.

I guess, you consider multiPartMap a security risk because it contains local filenames. But should we not handle it better? Can't it the be useful in some cases?

> JSON Response does not set http status on error
> -----------------------------------------------
>
>                 Key: OFBIZ-5409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5409
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS
>    Affects Versions: SVN trunk
>            Reporter: Gareth Carter
>            Priority: Trivial
>         Attachments: CommonEvents.patch
>
>
> When a json response is sent and there was an error in the service called, it does not set the http status. Currently status code is always 200 but it might be more appropriate to send an error code such as 500.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)