This issue has been created
There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-39a12bb7-925f-49fa-b9dc-ddd6bdc94810 XWIKI-23073 Open

In some cases the number of users is counted with each /view/ guest request

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7ff433a6-9d47-495b-85e7-c1dea7ea25be Thomas Mortagne created this issue on 07/Apr/25 11:19
 
Summary: In some cases the number of user is counted with each /view/ request
Issue Type: cid:jira-generated-image-avatar-39a12bb7-925f-49fa-b9dc-ddd6bdc94810 Bug
Affects Versions: 16.10.5
Assignee: Unassigned
Components: Extension - Distribution
Created: 07/Apr/25 11:19
Priority: cid:jira-generated-image-static-major-03d2eb35-3240-406a-bdb3-cbf2a6e6540b Major
Reporter: Thomas Mortagne
Description:

When the DW was not run yet and the current user is guest, we check if the there is a user (as a criteria for a new install situation). Problem is that until the instance is accessed by an admin the DW is never run and we keep counting the number of user for any guest /view/ request.

 
 

4 updates

 
cid:jira-generated-image-avatar-7ff433a6-9d47-495b-85e7-c1dea7ea25be Changes by Thomas Mortagne on 07/Apr/25 11:19
 
Summary: In some cases the number of user users is counted with each /view/ guest request
Description: When the DW was not run yet and the current user is guest, we check if the there is a user (as a criteria for a new install situation). Problem is that until the instance is accessed by an admin the DW is never run and we keep counting the number of user for any guest /view/ request.

Ideally, we should add a cached, and more optimized, helper in UserManager and use that in DistributionInitializerListener.
Assignee: Thomas Mortagne
Labels: performance