You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/04/04 12:23:00 UTC

[jira] [Updated] (AMBARI-25204) Ambari returns stack trace in HTML doc when an error occurs retrieving details for an Ambari View resource that does not exist

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

ASF GitHub Bot updated AMBARI-25204:
------------------------------------
    Labels: pull-request-available  (was: )

> 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: Gabor Boros
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.4
>
>
> 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)