There are 2 updates.
 
 
Confluence / cid:jira-generated-image-avatar-392b0f6d-7e69-402c-8e5a-d363c012c8ed CONFLUENCE-295 Open

Handle page reference collisions related page naming strategies that are not injective functions

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-3fb041c9-bd50-4ecb-9a0c-67c3216d091a Changes by Anca Luca on 14/Oct/24 20:06
 
Summary: Handle naming strategy page reference collisions related page naming strategies that are not injective functions
Description: Currently, in import, the name strategy set on the wiki is used to generate page names (apparently since CONFLUENCE-61).
If the current naming strategy produces can produce the same target name from the same two different origin name names , things will probably not go well.

We should handle the situation by either:
* issuing a warning
* producing a new name to avoid the collision,
** this needs to be deterministic. Maybe by using the Confluence page id.


Note that all default provided name strategies for XWiki are not injective functions (same output can be obtained for 2 different inputs), but for some the transformation / collision risk is higher than others. Slug name strategy has a higher risk of collision than the character suppression strategy