commit | b918b1d2a6ceec6fb6f59f1dd26dc5de9cb37ced | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Mon Feb 16 16:37:53 2009 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Mon Feb 16 16:37:53 2009 +0000 |
tree | 0dafa62b523f1c4f732343ab4b6b937d1dc44f6b | |
parent | daa2402ecfa4e32e04fce362a768f4213b542b4b [diff] |
Fix display problem if configMgr is opened: no configuration should be preselected. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@744959 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java index a364682..ba5800b 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
@@ -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