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("