Return-Path: Delivered-To: apmail-hadoop-chukwa-commits-archive@minotaur.apache.org Received: (qmail 92182 invoked from network); 8 May 2009 22:16:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 May 2009 22:16:41 -0000 Received: (qmail 58821 invoked by uid 500); 8 May 2009 22:16:41 -0000 Delivered-To: apmail-hadoop-chukwa-commits-archive@hadoop.apache.org Received: (qmail 58810 invoked by uid 500); 8 May 2009 22:16:41 -0000 Mailing-List: contact chukwa-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-commits@hadoop.apache.org Received: (qmail 58799 invoked by uid 99); 8 May 2009 22:16:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 22:16:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 22:16:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 49CBC2388D4F; Fri, 8 May 2009 22:16:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r773123 - in /hadoop/chukwa/trunk: ./ src/java/org/apache/hadoop/chukwa/hicc/ src/java/org/apache/hadoop/chukwa/util/ src/web/hicc/ src/web/hicc/descriptors/ src/web/hicc/js/workspace/ src/web/hicc/jsp/ Date: Fri, 08 May 2009 22:16:14 -0000 To: chukwa-commits@hadoop.apache.org From: eyang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090508221615.49CBC2388D4F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: eyang Date: Fri May 8 22:16:14 2009 New Revision: 773123 URL: http://svn.apache.org/viewvc?rev=773123&view=rev Log: CHUKWA-219. Improved usability of host selector, and updated caching for host list. (Eric Yang) Added: hadoop/chukwa/trunk/src/web/hicc/jsp/host_selector_dropdown.jsp hadoop/chukwa/trunk/src/web/hicc/jsp/host_selector_role.jsp hadoop/chukwa/trunk/src/web/hicc/jsp/host_selector_user.jsp Modified: hadoop/chukwa/trunk/CHANGES.txt hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/hicc/Iframe.java hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/XssFilter.java hadoop/chukwa/trunk/src/web/hicc/descriptors/host_selector.descriptor hadoop/chukwa/trunk/src/web/hicc/index.jsp hadoop/chukwa/trunk/src/web/hicc/js/workspace/workspace.js hadoop/chukwa/trunk/src/web/hicc/jsp/host_selector.jsp Modified: hadoop/chukwa/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=773123&r1=773122&r2=773123&view=diff ============================================================================== --- hadoop/chukwa/trunk/CHANGES.txt (original) +++ hadoop/chukwa/trunk/CHANGES.txt Fri May 8 22:16:14 2009 @@ -117,6 +117,8 @@ BUG FIXES + CHUKWA-103. Fix documentation broken link. (Eric Yang) + CHUKWA-208. Skip copying of test/sample directory if it doesn't exist. (Eric Yang) CHUKWA-206. Removed hard coded path from configuration files, and sample data. (Eric Yang) Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/hicc/Iframe.java URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/hicc/Iframe.java?rev=773123&r1=773122&r2=773123&view=diff ============================================================================== --- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/hicc/Iframe.java (original) +++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/hicc/Iframe.java Fri May 8 22:16:14 2009 @@ -30,8 +30,8 @@ PrintWriter out = response.getWriter(); StringBuffer source = new StringBuffer(); String requestURL = request.getRequestURL().toString().replaceFirst("iframe/", ""); - if(requestURL.indexOf("/hicc")!=-1) { - requestURL = requestURL.substring(requestURL.indexOf("/hicc")); + if(requestURL.indexOf("/hicc/")!=-1) { + requestURL = requestURL.substring(requestURL.indexOf("/hicc/")); } source.append(requestURL); source.append("?"); @@ -39,11 +39,13 @@ while (names.hasMoreElements()) { String key = xf.filter((String) names.nextElement()); String[] values = xf.getParameterValues(key); - for (int i = 0; i < values.length; i++) { - source.append(key + "=" + values[i] + "&"); - } - if (key.toLowerCase().intern() == "height".intern()) { - height = xf.getParameter(key); + if(values!=null) { + for (int i = 0; i < values.length; i++) { + source.append(key + "=" + values[i] + "&"); + } + if (key.toLowerCase().intern() == "height".intern()) { + height = xf.getParameter(key); + } } } out.println("