You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2015/05/19 22:42:00 UTC

[jira] [Commented] (AMBARI-11170) Views : AmbariStreamProvider and URLStreamProvider should accept body as InputStream

    [ https://issues.apache.org/jira/browse/AMBARI-11170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551182#comment-14551182 ] 

Tom Beerbower commented on AMBARI-11170:
----------------------------------------

The signature for the processURL() method on the Ambari org.apache.ambari.server.controller.internal.URLStreamProvider takes an Object for the body but uses an instanceof check to cast to either InputStream or String.  Any other type of Object results in ClassCastException.

Changing the URLStreamProvider to have 3 signatures for processURL() so it's clear that they are the only types that are handled (String, InputStream, and byte[]).

Making the corresponding changes in the view URLStreamProvider and AmbariStreamProvider interfaces.

See https://reviews.apache.org/r/34382/ for details.

> Views : AmbariStreamProvider and URLStreamProvider should accept body as InputStream
> ------------------------------------------------------------------------------------
>
>                 Key: AMBARI-11170
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11170
>             Project: Ambari
>          Issue Type: Task
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 2.1.0
>
>
> Add new signatures to the URLStreamProvider methods that take an InputStream for the body.  The existing methods take a String for the body.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)