[jboss-cvs] JBossAS SVN: r109712 - branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/web/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 3 15:29:21 EST 2010


Author: rachmatowicz at jboss.com
Date: 2010-12-03 15:29:21 -0500 (Fri, 03 Dec 2010)
New Revision: 109712

Modified:
   branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/web/test/SSOBaseCase.java
Log:
Fix up SSOBaseCase to allow handling copying of cookies which include IPv6 address literals. This fixes a failure in ClusteredSingleSignOnTestCase (JBAS-8540)

Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/web/test/SSOBaseCase.java
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/web/test/SSOBaseCase.java	2010-12-03 20:20:15 UTC (rev 109711)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/web/test/SSOBaseCase.java	2010-12-03 20:29:21 UTC (rev 109712)
@@ -234,7 +234,11 @@
       {
          targetServer = targetServer.substring(index + 3);
       }
-      index = targetServer.indexOf(":");
+      // JBAS-8540
+      // need to be able to parse IPv6 URLs which have enclosing brackets
+      // HttpClient 3.1 creates cookies which oinclude the square brackets
+      // index = targetServer.indexOf(":");
+      index = targetServer.lastIndexOf(":");
       if (index > -1)
       {
          targetServer = targetServer.substring(0, index);         



More information about the jboss-cvs-commits mailing list