[AUTOMATED] Name strategies character replacement validation [Since XWiki 12.0RC1]

Last modified by Ilie Andriuta on 2026/06/08 16:49

Home Administration Tests Home Run Test

Steps to reproduce

  1. Login as Admin
  2. Go to Administer Wiki > Editing > Name Strategies
  3. Under 'Current Name Strategy' select 'Character replacement'
  4. Under 'Transform name automatically' select 'Disabled'
  5. Under 'Validate names before saving' select 'Enabled'
  6. Under 'Character Replacement Strategy Configuration' click 'Add new character'
  7. Add a new forbidden character (e.g. ") and a new replacement character (e.g. -)
  8. Click 'Add new character' > 'Save'
  9. Create a new page with some forbidden characters in its name (e.g. Te"s/t)
  10. Click 'Create'

Expected results

An error message is displayed: 

Error

Cannot create document xwiki:Main.WebHome because its name does not respect the name strategy of the wiki. Change the name or move the parent to another space.
The configured name strategy is: Character replacement. The strategy is defined as follows: Some characters are forbidden with this strategy and should be replaced or removed. Ask your administrator to know exactly the list of forbidden characters, and the replacement to use.

Automation Status

Automated

Results

per page of Page
Jira Issue
Warning
The environment prevents the table from loading data.
 
Page

Get Connected