Author: deepal
Date: Thu Jan  3 21:04:25 2008
New Revision: 11824

Log:

get all the test cases working , after adding secure registry support to 
AtomRegistry 

Modified:
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   Thu Jan  3 21:04:25 2008
@@ -868,9 +868,8 @@
             String userName = values[0];
             String password = values[1];
             // user name and password have found
-//            return new SecureRegistry(
-//                    userName, password, jdbcregistry, realm);
-            return jdbcregistry;
+            return new SecureRegistry(
+                    userName, password, jdbcregistry, realm);
         } else {
             // seems like need to create a secure jdbcregistry with annon user
             return new SecureRegistry(

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
      (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
      Thu Jan  3 21:04:25 2008
@@ -144,8 +144,8 @@
         String authorizationPath = path;
         if (path.indexOf("?") > 0) {
             authorizationPath = path.split("\\?")[0];
-        } else if (path.indexOf(":")>0) {
-            authorizationPath = path.split("\\:")[0];
+        } else if (path.indexOf(";")>0) {
+            authorizationPath = path.split("\\;")[0];
         }
 
         try {

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to