Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3267,19 +3267,6 @@ private List<String> doGetUserList(String claim, String claimValue, String profi
// For all the user stores append the domain name to the claim and pass it recursively (Including PRIMARY).
String domainName = ((AbstractUserStoreManager) userStoreManager).getMyDomainName();

try {
if (isIdentityStoreManagedClaim(claimManager.getClaim(claim), domainName, userStoreManager)) {
if (log.isDebugEnabled()) {
log.debug("The claim: " + claim + " is an identity store managed claim for the domain: "
+ domainName + ". Hence skipping the user store.");
}
continue;
}
} catch (org.wso2.carbon.user.api.UserStoreException e) {
log.error(String.format("Error occurred while retrieving claim for claim URI: %s for domain: %s.",
claim, domainName), e);
}

String claimValueWithDomain;
if (StringUtils.equalsIgnoreCase(domainName, UserCoreConstants.PRIMARY_DEFAULT_DOMAIN_NAME)) {
claimValueWithDomain = domainName + CarbonConstants.DOMAIN_SEPARATOR + claimValue;
Expand Down Expand Up @@ -3543,19 +3530,6 @@ private List<User> doGetUserListWithID(String claim, String claimValue, String p
// For all the user stores append the domain name to the claim and pass it recursively (Including PRIMARY).
String domainName = ((AbstractUserStoreManager) userStoreManager).getMyDomainName();

try {
if (isIdentityStoreManagedClaim(claimManager.getClaim(claim), domainName, userStoreManager)) {
if (log.isDebugEnabled()) {
log.debug("The claim: " + claim + " is an identity store managed claim for the domain: "
+ domainName + ". Hence skipping the user store.");
}
continue;
}
} catch (org.wso2.carbon.user.api.UserStoreException e) {
log.error(String.format("Error occurred while retrieving claim for claim URI: %s for domain: %s.",
claim, domainName), e);
}

String claimValueWithDomain;
if (StringUtils.equalsIgnoreCase(domainName, UserCoreConstants.PRIMARY_DEFAULT_DOMAIN_NAME)) {
claimValueWithDomain = domainName + CarbonConstants.DOMAIN_SEPARATOR + claimValue;
Expand Down