Hi Manoj,

Please apply the attached patch fixing a debug log related to [1].
Patch goes to patch0006/core/org.wso2.carbon.user.core/4.2.0

[1] https://wso2.org/jira/browse/CARBON-14729

Thanks,
Lakmali

-- 
Lakmali Baminiwatta
 Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
Index: src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java
===================================================================
--- src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java	(revision 198277)
+++ src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java	(working copy)
@@ -2111,11 +2111,15 @@
 
             if(debug) {
                 if(list != null) {
+                	boolean isUserInRole = false;
                     for(String item : list) {
                         log.debug("Result: " + item);
+                        if(item.equalsIgnoreCase(roleName)) {
+                        	isUserInRole = true;
+                        }
                     }
                     log.debug("Is user: " + userName + " in role: " + roleName + " ? " +
-                              list.contains(roleName));
+                    		isUserInRole);
                 } else {
                     log.debug("No results found !");
                 }
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to