[ 
https://issues.apache.org/jira/browse/AMBARI-25204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabor Boros resolved AMBARI-25204.
----------------------------------
    Resolution: Fixed

> Ambari returns stack trace in HTML doc when an error occurs retrieving 
> details for an Ambari View resource that does not exist
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-25204
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25204
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.3
>            Reporter: Robert Levas
>            Assignee: Dmitry Lysnichenko
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.4
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Ambari returns stack trace in HTML doc when an error occurs retrieving 
> details for an *Ambari View* resource that does not exist.
> {noformat}
> curl -u admin:admin -X GET 
> http://localhost:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/bad_resource
> {noformat}
> {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/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/bad_resource.
>  Reason:
> <pre>    Server Error</pre></p><h3>Caused 
> by:</h3><pre>java.lang.IllegalArgumentException: A resource type bad_resource 
> for view instance CAPACITY-SCHEDULER/AUTO_CS_INSTANCE can not be found.
>       at 
> org.apache.ambari.server.api.services.views.ViewInstanceService.getResourceHandler(ViewInstanceService.java:326)
>       at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to