This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-af456c65-eb64-484e-a9a6-790021de5999 XWIKI-23771 Open

AWM: Numeric field accepts invalid characters, causing server error on edit

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-573ff4fa-ac61-4aa8-a70e-959e774b134b Andreea Tarata created this issue on 27/Nov/25 18:15
 
Summary: AWM: Numeric field accepts invalid characters, causing server error on edit
Issue Type: cid:jira-generated-image-avatar-af456c65-eb64-484e-a9a6-790021de5999 Bug
Affects Versions: 17.8.0
Assignee: Unassigned
Attachments: server_error.gif
Components: App Within Minutes
Created: 27/Nov/25 18:15
Environment: Windows 11 Pro, Edge 142, using an instance of XWiki 17.8.0 on MariaDB 12.0, Jetty 12.0
Priority: cid:jira-generated-image-static-minor-cd5deb0b-d03f-483f-a9a7-e69851753ba0 Minor
Reporter: Andreea Tarata
Description:

Precondition: Have an AWM created with a numeric field only.

Steps to reproduce:

1. Add a new entry within your app
2. In number field insert "aaa" and save
3. Delete and type 12
4. Save & View
5. Click on the edit pencil
6. Delete the number and insert "aaa"
7. Click on Save

Actual result:

2. Red banner with error message is displayed: "Failed to save the page. Reason: An error occured while saving: Error number 0 in 0: Error when parsing [aaa] to type [float]."
7. Red banner with error message is displayed: "Failed to save the page. Reason: Server Error"

Expected result:

  • The numeric field should enforce numeric-only input through client-side validation.
  • If invalid characters are entered, the system should show a clear, user-friendly validation message such as:
    “Please enter a valid numeric value.”
  • The request containing invalid data should never reach the server, thereby preventing backend errors.