[jira] [Updated] (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:all-tabpanel ] Doroszlai, Attila updated AMBARI-25039: --- Resolution: Done Status: Resolved (was: Patch Available) > 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} > > > > Error 500 Server Error > > HTTP ERROR 500 > Problem accessing /api/v1/clusters/TEST/services. Reason: > Server ErrorCaused > by: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)
[jira] [Updated] (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:all-tabpanel ] Doroszlai, Attila updated AMBARI-25039: --- Status: Patch Available (was: In Progress) > 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: 20m > 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} > > > > Error 500 Server Error > > HTTP ERROR 500 > Problem accessing /api/v1/clusters/TEST/services. Reason: > Server ErrorCaused > by: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)
[jira] [Updated] (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:all-tabpanel ] ASF GitHub Bot updated AMBARI-25039: Labels: pull-request-available (was: ) > 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 > > > 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} > > > > Error 500 Server Error > > HTTP ERROR 500 > Problem accessing /api/v1/clusters/TEST/services. Reason: > Server ErrorCaused > by: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)