This issue has been created
There are 9 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-be94e023-4028-4cff-9037-b35d43979091 XWIKI-23491 Closed

Bad error message when creating a wiki and the id is a reserved one

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2a76cbbe-f3e8-4cb9-9f79-ed06a4dcc9d0 Vincent Massol created this issue on 28/Aug/25 15:50
 
Summary: Bad error message when create a wiki and the id is a reserved one
Issue Type: cid:jira-generated-image-avatar-de4802cf-de86-4377-828a-742e98994ee4 Improvement
Affects Versions: 16.10.0
Assignee: Unassigned
Components: Wiki
Created: 28/Aug/25 15:50
Priority: cid:jira-generated-image-static-minor-82c5808d-a246-4b47-b437-a7ef93d73e38 Minor
Reporter: Vincent Massol
Description:

Right now it says:

    @Test
    void createWhenWikiIdIsForbidden() throws Exception
    {
        // The wiki does not already exist
        when(this.wikiDescriptorManager.exists("wikiid1")).thenReturn(false);

        // Forbidden list
        when(this.xwiki.Param("xwiki.virtual.reserved_wikis")).thenReturn("forbidden,wikiid1");

        Throwable exception = assertThrows(WikiManagerException.class, () -> {
            this.wikiManager.create("wikiid1", "wikialias1", true);
        });
        assertEquals("wiki id [wikiid1] is already used and is thus not available", exception.getMessage());
    }

It should say it's reserved instead.

 
 

9 updates

 
cid:jira-generated-image-avatar-2a76cbbe-f3e8-4cb9-9f79-ed06a4dcc9d0 Changes by Vincent Massol on 28/Aug/25 15:50
 
Summary: Bad error message when create creating a wiki and the id is a reserved one
Issue Type: Improvement Bug
Fix Version: 17.8.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Fixed
Tests: Unit
Status: Open Closed