mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for ALFCOM-2912 - group search now correctly handles double quotes in search terms
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14522 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -146,12 +146,11 @@ public class ScriptAuthorityService extends BaseScopableProcessorExtension
|
||||
/**
|
||||
* Modify shortNameFilter to be "shortName*"
|
||||
*/
|
||||
if(shortNameFilter.length() > 0)
|
||||
if (shortNameFilter.length() > 0)
|
||||
{
|
||||
filter = filter + "*";
|
||||
filter = filter.replace("\"", "") + "*";
|
||||
}
|
||||
|
||||
|
||||
Set<ScriptGroup> groups = new LinkedHashSet<ScriptGroup>(0);
|
||||
Set<String> authorities = authorityService.findAuthoritiesByShortName(AuthorityType.GROUP, filter);
|
||||
for(String authority : authorities)
|
||||
@@ -162,5 +161,4 @@ public class ScriptAuthorityService extends BaseScopableProcessorExtension
|
||||
}
|
||||
return groups.toArray(new ScriptGroup[groups.size()]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user