Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B193B171D5 for ; Tue, 19 May 2015 20:42:00 +0000 (UTC) Received: (qmail 7713 invoked by uid 500); 19 May 2015 20:42:00 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 7678 invoked by uid 500); 19 May 2015 20:42:00 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 7666 invoked by uid 99); 19 May 2015 20:42:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 20:42:00 +0000 Date: Tue, 19 May 2015 20:42:00 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-11170) Views : AmbariStreamProvider and URLStreamProvider should accept body as InputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)