[
https://issues.apache.org/jira/browse/SHINDIG-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Smith updated SHINDIG-1084:
-------------------------------
Attachment: SHINDIG-1084-bug.patch
Patch catches RuntimeExceptions, checks they were really JSONExceptions and
throws a ProtocolException with a 400 status.
test included
> Shindig REST returns a 500 internal server error for invalid JSON
> -----------------------------------------------------------------
>
> Key: SHINDIG-1084
> URL: https://issues.apache.org/jira/browse/SHINDIG-1084
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Affects Versions: trunk
> Reporter: Ben Smith
> Priority: Minor
> Fix For: trunk
>
> Attachments: SHINDIG-1084-bug.patch
>
>
> A JSONException is currently wrapped in a RuntimeException and returned to
> the user as a 500 internal server error. This should actually be a 400 bad
> request.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.