ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-11170) Views : AmbariStreamProvider and URLStreamProvider should accept body as InputStream
Date Tue, 19 May 2015 20:42:00 GMT

    [ 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)

Mime
View raw message