Author: dimuthul
Date: Wed Jan 2 21:44:49 2008
New Revision: 11779
Log:
Throwing an exception when Null realm is given.
Modified:
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealm.java
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/resources.properties
Modified:
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealm.java
==============================================================================
---
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealm.java
(original)
+++
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealm.java
Wed Jan 2 21:44:49 2008
@@ -83,6 +83,10 @@
this.realm = config.getRealm();
this.username = config.getAuthenticatedUserName();
+ if(realm == null){
+ throw new UserManagerException("nullRealm");
+ }
+
Authorizer authorizer = realm.getAuthorizer();
if (authorizer == null) {
throw new UserManagerException("authorizerNullatAuthorizer");
Modified:
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/resources.properties
==============================================================================
---
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/resources.properties
(original)
+++
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/resources.properties
Wed Jan 2 21:44:49 2008
@@ -36,4 +36,5 @@
dbCreationNotSupported = Database creation not supported for this driver
nullConnection = Cannot get connection. Contact Administrator
unableToResetPool = Unable to reset realm. There are people holding instances
of PoolManager
-oldPasswordIncorrect = Cannot update password of user. Invalid user name
password!
\ No newline at end of file
+oldPasswordIncorrect = Cannot update password of user. Invalid user name
password!
+nullRealm = Null Realm not permitted.
\ No newline at end of file
_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev