geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r687925 - /geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Date Fri, 22 Aug 2008 01:54:42 GMT
Author: linsun
Date: Thu Aug 21 18:54:41 2008
New Revision: 687925

URL: http://svn.apache.org/viewvc?rev=687925&view=rev
Log:
GERONIMO-3469 - From console: database pool doesn't work well if the name contains a / like
jdbc/EmployeeDataSource

Modified:
    geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java

Modified: geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java?rev=687925&r1=687924&r2=687925&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
(original)
+++ geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Thu Aug 21 18:54:41 2008
@@ -972,7 +972,8 @@
                 String artifactId = data.name;
                 if (artifactId.indexOf('/') != -1) {
                     // slash in artifact-id results in invalid configuration-id and leads
to deployment errors
-                    artifactId = artifactId.replaceAll("/", "%2F");
+                    // use the after / portion as the artifactId
+                    artifactId = artifactId.substring(artifactId.indexOf('/') + 1);
                 }
                 configId.setArtifactId(artifactId);
                 configId.setVersion("1.0");



Mime
View raw message