This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-a1eff717-fd5d-4de7-a7df-3772166f5737 XWIKI-22373 Open

User suggest picker doesn't honor the limit for local users

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-982ef4b5-5d5a-4831-82db-15cc92be1742 Vincent Massol created this issue on 31/Jul/24 13:57
 
Summary: User suggest picker doesn't honor the limit for local users
Issue Type: cid:jira-generated-image-avatar-a1eff717-fd5d-4de7-a7df-3772166f5737 Bug
Affects Versions: 15.10
Assignee: Unassigned
Components: Web - Templates & Resources
Created: 31/Jul/24 13:57
Priority: cid:jira-generated-image-static-major-b48037d5-d897-4fd4-95be-8e9afe436ba8 Major
Reporter: Vincent Massol
Description:

To reproduce:

  • Create at least 10 users in you wiki
  • Edit suggestUsersAndGroups.js and replace the 2 locations where there's 10 by 5.
  • Create a page with the following content:
    {{velocity}}
    {{html}}
    #set ($userPickerParams = {
      'data-userScope' : 'LOCAL_ONLY'
    })
    #userPicker(true, $userPickerParams)
    {{/html}}
    {{/velocity}}
  • Open your browser dev tool and make sure cache is disabled for javascript.

Notice that 10 results are returned.

Then:

  • Replace "LOCAL_ONLY" by "LOCAL_AND_GLOBAL"

Notice that 5 results are returned correctly.