hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1130730 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/http/HttpServer.java
Date Thu, 02 Jun 2011 18:56:33 GMT
Author: stack
Date: Thu Jun  2 18:56:32 2011
New Revision: 1130730

URL: http://svn.apache.org/viewvc?rev=1130730&view=rev
Log:
HADOOP-7351 Regression: HttpServer#getWebAppsPath used to be protected so subclasses could
supply alternate webapps path but it was made private by HADOOP-6461

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/http/HttpServer.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1130730&r1=1130729&r2=1130730&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Thu Jun  2 18:56:32 2011
@@ -315,6 +315,10 @@ Release 0.22.0 - Unreleased
     HADOOP-7134. configure files that are generated as part of the released
     tarball need to have executable bit set. (Roman Shaposhnik via cos)
 
+    HADOOP-7351  Regression: HttpServer#getWebAppsPath used to be protected
+    so subclasses could supply alternate webapps path but it was made private
+    by HADOOP-6461 (Stack)
+
   IMPROVEMENTS
 
     HADOOP-6644. util.Shell getGROUPS_FOR_USER_COMMAND method name 

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/http/HttpServer.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/http/HttpServer.java?rev=1130730&r1=1130729&r2=1130730&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/http/HttpServer.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/http/HttpServer.java Thu Jun  2 18:56:32
2011
@@ -462,7 +462,7 @@ public class HttpServer implements Filte
    * @return the pathname as a URL
    * @throws FileNotFoundException if 'webapps' directory cannot be found on CLASSPATH.
    */
-  private String getWebAppsPath(String appName) throws FileNotFoundException {
+  protected String getWebAppsPath(String appName) throws FileNotFoundException {
     URL url = getClass().getClassLoader().getResource("webapps/" + appName);
     if (url == null) 
       throw new FileNotFoundException("webapps/" + appName



Mime
View raw message