You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/12/13 15:48:00 UTC
[jira] [Commented] (AMBARI-25039) Parse error should be reported as
Bad Request
[ https://issues.apache.org/jira/browse/AMBARI-25039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720326#comment-16720326 ]
Hudson commented on AMBARI-25039:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #10382 (See [https://builds.apache.org/job/Ambari-trunk-Commit/10382/])
AMBARI-25039. Parse error should be reported as Bad Request (#2718) (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=66b6f7f7f061b8d19589378e7d0876a1495bfb62])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java
> Parse error should be reported as Bad Request
> ---------------------------------------------
>
> Key: AMBARI-25039
> URL: https://issues.apache.org/jira/browse/AMBARI-25039
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-server
> Affects Versions: 2.8.0
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.8.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Any JSON errors encountered while parsing Add Service request should be reported as HTTP 400 Bad Request. Currently such errors result in HTTP 500 Server Error.
> {noformat}
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 500 Server Error</title>
> </head>
> <body><h2>HTTP ERROR 500</h2>
> <p>Problem accessing /api/v1/clusters/TEST/services. Reason:
> <pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.io.UncheckedIOException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.HashSet` out of VALUE_STRING token
> at [Source: (String)"{ "operation_type": "ADD_SERVICE", "components": "asdf"}"; line: 1, column: 52] (through reference chain: org.apache.ambari.server.controller.AddServiceRequest["components"])
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)