Name strategies character replacement validation [Since XWiki 12.0RC1]

Last modified by Ilie Andriuta on 2022/11/29 17:09

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: '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.'

Automation Status

Needs Automated Test

Results

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

Get Connected