Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
17.8.0
-
None
-
Windows 11 Pro, Edge 142, using an instance of XWiki 17.8.0 on MariaDB 12.0, Jetty 12.0
-
Unknown
-
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.