[ https://issues.apache.org/jira/browse/AMBARI-25204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811060#comment-16811060 ]
Hudson commented on AMBARI-25204: --------------------------------- SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #475 (See [https://builds.apache.org/job/Ambari-branch-2.7/475/]) AMBARI-25204. Ambari returns stack trace in HTML doc when an error (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=e4e6cd5842191c6b89e6cb0b2a006fbe19069e7b]) * (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewInstanceService.java > 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 > > 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)