You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2009/02/16 17:37:58 UTC
svn commit: r744959 -
/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
Author: cziegeler
Date: Mon Feb 16 16:37:53 2009
New Revision: 744959
URL: http://svn.apache.org/viewvc?rev=744959&view=rev
Log:
Fix display problem if configMgr is opened: no configuration should be preselected.
Modified:
felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java?rev=744959&r1=744958&r2=744959&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java (original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java Mon Feb 16 16:37:53 2009
@@ -208,9 +208,12 @@
{
// extract the configuration pid from the request path
- String pid = request.getPathInfo();
- pid = pid.substring( pid.lastIndexOf( '/' ) + 1 );
-
+ String pid = request.getPathInfo().substring(this.getLabel().length() + 1);
+ if ( pid.length() == 0 ) {
+ pid = null;
+ } else {
+ pid = pid.substring( pid.lastIndexOf( '/' ) + 1 );
+ }
// check whether the pid is actually a filter for the selection
// of configurations to display, if the filter correctly converts
// into an OSGi filter, we use it to select configurations