This issue has been created
 
 
XWiki Commons / cid:jira-generated-image-avatar-42deef3c-8acb-4788-b53d-7270b6dc9ad4 XCOMMONS-3370 Open

Allow registering XWikiEndpointDispatchers with an additional segment

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6888df57-88b1-4e1f-8f8d-2198baf35bf8 Manuel Leduc created this issue on 04/Jul/25 15:23
 
Summary: Allow registering XWikiEndpointDispatchers with an additional segment
Issue Type: cid:jira-generated-image-avatar-42deef3c-8acb-4788-b53d-7270b6dc9ad4 Improvement
Affects Versions: 17.5.0
Assignee: Unassigned
Components: WebSocket
Created: 04/Jul/25 15:23
Priority: cid:jira-generated-image-static-major-18f6c043-e3ed-4a70-8cff-faf1a812fe6f Major
Reporter: Manuel Leduc
Description:

The motivation comes from the y-websocket connector that connects editors though a <baseUrl>/{roomId} pattern.
The segment of the URL just before the roomId is expected to be the role hint of the XWikiEndpointDispatcher that will handle the web socket connection.
Therefore, I propose to add a second segment endpoint configuration allowing to have one more segment.
To the best of my knowledge, there is no mechanism to have a variable part in the declared url