This issue has been created
There is 1 update.
 
 
XWiki Commons / cid:jira-generated-image-avatar-6ebdf125-85f5-4385-8e63-70deece35c23 XCOMMONS-3346 Open

The component manager doesn't detect cycles in the initialization of singleton components

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-44eaf82a-8ca9-456c-ba17-fe8d67f09b98 Michael Hamann created this issue on 26/May/25 14:24
 
Summary: The component manager doesn't detect cycles in the initialization of singleton components
Issue Type: cid:jira-generated-image-avatar-6ebdf125-85f5-4385-8e63-70deece35c23 Bug
Affects Versions: 16.10.0
Assignee: Unassigned
Components: Component
Created: 26/May/25 14:24
Priority: cid:jira-generated-image-static-major-942940bf-4b48-42fe-aaac-40935b48893e Major
Reporter: Michael Hamann
Description:

When a singleton component triggers its own loading during its initialization (through a chain of dependencies), the component manager creates a new instance of it. In some cases this leads to a stack overflow, in other cases where the cycle breaks for some reason in the second iteration, it might also just lead to several instances of the singleton component.

The component manager should prevent that a second instance of a singleton component is created and fail with a clear error.

 
 

1 update

 
cid:jira-generated-image-avatar-44eaf82a-8ca9-456c-ba17-fe8d67f09b98 Changes by Michael Hamann on 26/May/25 14:24
 
Assignee: Michael Hamann