This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b9c9f066-9f24-44fe-96fb-f091a117fac0 XWIKI-24786 Open

A failed identifier validation leaves the image style creation form unusable

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-933b6abd-6585-458c-882f-6a83049f12fe Manuel Leduc created this issue on 03/Sep/26 11:38
 
Summary: A failed identifier validation leaves the image style creation form unusable
Issue Type: cid:jira-generated-image-avatar-b9c9f066-9f24-44fe-96fb-f091a117fac0 Bug
Affects Versions: 15.8
Assignee: Unassigned
Components: Image
Created: 03/Sep/26 11:38
Priority: cid:jira-generated-image-static-major-45753092-a15a-4f7d-94f2-a9ada04bcb75 Major
Reporter: Manuel Leduc
Description:

Problem

The "New Image Style" field of the image style administration checks the entered name against the entitynamevalidation_json page, and only enables the creation button once that check has answered. When the request fails, or returns something unexpected, nothing ever re-enables the button. The request also has no timeout, so a validation page that never answers blocks the form indefinitely.

Steps to reproduce

  • Go to Administration / Content / Image Styles
  • Make the entity name validation request fail (for instance by cutting the network connection), or have it never answer
  • Type a name in the "New Image Style" field

Actual result

The creation button stays disabled forever, with no way to recover other than reloading the page. Nothing tells the user that the name could not be checked - the failure is only visible in the browser console, and even there it is reported with console.log instead of console.error.

Expected result

The administration falls back to the name as entered, the creation button gets enabled, and the user is told that the name could not be checked and will be used as it was typed.

 
 

2 updates

 
cid:jira-generated-image-avatar-933b6abd-6585-458c-882f-6a83049f12fe Changes by Manuel Leduc on 03/Sep/26 11:38
 
Fix Version: 18.8.0-rc-1
Assignee: Manuel Leduc