geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r472444 - /geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Date Wed, 08 Nov 2006 10:30:33 GMT
Author: vamsic007
Date: Wed Nov  8 02:30:32 2006
New Revision: 472444

URL: http://svn.apache.org/viewvc?view=rev&rev=472444
Log:
GERONIMO-2314 Can not create a datasource with the name "jdbc/EmployeeDatasource" from console

Modified:
    geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java

Modified: geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java?view=diff&rev=472444&r1=472443&r2=472444
==============================================================================
--- geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
(original)
+++ geronimo/server/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Wed Nov  8 02:30:32 2006
@@ -886,7 +886,12 @@
                 org.apache.geronimo.deployment.service.jsr88.Artifact configId = new org.apache.geronimo.deployment.service.jsr88.Artifact();
                 environment.setConfigId(configId);
                 configId.setGroupId("console.dbpool");
-                configId.setArtifactId(data.getName());
+                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");
+                }
+                configId.setArtifactId(artifactId);
                 configId.setVersion("1.0");
                 configId.setType("rar");
 



Mime
View raw message