There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c0131e33-15ac-4bf7-bd5a-ef602254fd9d XWIKI-24628 Open

Naming strategy not applied when renaming a page

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-b2248649-b402-4b13-83be-b308b17baaf3 Changes by Andreea Bran on 28/Jul/26 10:31
 
Version: 17.10.10
Description: It reproduces with the standard "Preformatted names" strategy:

A. I did the following steps to reproduce the issue with the "Preformatted names":
1. Selected the Preformatted names without special characters as a Name strategy

, Transform names automatically Enabled, Validate names before saving Enabled
2. I created a page with the name Test*&6A and the saved name was Test-6A. It respected the chosen name strategy.
3. I renamed the page Test-6A&*
Expected result: a name respecting the name strategy
Actual result: Test-6A%26*, thus the name strategy was not kept.

But also with the "Randomly generated unique names" strategy
(I [created a ticket|https://jira . xwiki.org/browse/RPN-4] on the extension side for it). Prerequisite to test with the "Randomly generated unique names" strategy: install https://extensions.xwiki.org/xwiki/bin/view/Extension/Random%20Page%20Naming%20Strategy/

B. And the "Randomly generated unique names" name strategies rename test
:

1. Selected the "Randomly generated unique names" without special characters as a Name strategy , Transform names automatically Enabled, Validate names before saving Enabled
2. I created a page with the name "NewPage" and the URL name was ea49f178-8a5a-11f1-be76-f0b61e7d152c. It respected the chosen name strategy.
3. I renamed the page TestRenameRandomStrategy

Expected result: a random, unique alphanumerical URL
Actual result: the name strategy was not kept, TestRenameRandomStrategy is shown