This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-e596ba39-84bb-4b57-b953-3cab8bbc17db XWIKI-22431 Open

Creation Restrictions shouldn't allow adding duplicate locations

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6b8b5a9d-8b11-456d-9db3-5dce229c50fe Ilie Andriuta created this issue on 19/Aug/24 15:20
 
Summary: Creation Restrictions shouldn't allow adding duplicate locations
Issue Type: cid:jira-generated-image-avatar-e596ba39-84bb-4b57-b953-3cab8bbc17db Bug
Affects Versions: 11.10.13
Assignee: Unassigned
Attachments: Duplicated_creation_restriction_AWM.png, Duplicated_creation_restriction_Template_Provider.png
Components: Administration
Created: 19/Aug/24 15:20
Environment: Windows 11 Pro, Chrome 127, using a local instance of XWiki 16.4.2 on MySQL 9.0.1, Tomcat 9.0.93
Priority: cid:jira-generated-image-static-major-7bb7debf-7584-4f94-b9b0-debc864c238e Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Login as Admin
  2. Go to Administer Wiki > Content > Page Templates
  3. Write a "Template Provider" name in the Title field
  4. Click on 'Create' button
  5. Under Creation Restrictions select a location e.g. 'Home'
  6. Click "+" and add again the same location e.g. 'Home'

Expected results

The location is displayed a single time in the list of locations.

Actual results

The location is duplicated, being displayed as many times as it's being added.

The same issue can be reproduced when creating an AppWithinMinutes for ex. at Step 3 under "Where to create entries" section.

I've also reproduced this on XWiki 16.4.2, 16.6.0 and 11.10.13, but it may be reproducible on older versions as well.