felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r667547 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
Date Fri, 13 Jun 2008 14:07:25 GMT
Author: fmeschbe
Date: Fri Jun 13 07:07:25 2008
New Revision: 667547

URL: http://svn.apache.org/viewvc?rev=667547&view=rev
Log:
Redirect both /system/console and /system/console/ to the default page, 
otherwise /system/console/ would resolve to an empty label, for which
no page exists.

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java?rev=667547&r1=667546&r2=667547&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
Fri Jun 13 07:07:25 2008
@@ -293,7 +293,7 @@
         }
 
         // check whether we are not at .../{webManagerRoot}
-        if ( request.getPathInfo() == null )
+        if ( request.getPathInfo() == null || request.getPathInfo().equals( "/" ) )
         {
             String path = request.getRequestURI();
             if ( !path.endsWith( "/" ) )



Mime
View raw message