Required field not displaying an error when edited to become null
This is per https://groups.google.com/forum/?fromgroups#!topic/dotcms/HZgOSQ0MLo8. To recap the steps:
-
Log into demo.dotcms.com
-
Create a structure with a field with the following properties:
- Display type Text
- Data type Whole Number
- Validation RegEx ^(([1-9]{1}[0-9]{0,4})|100000)$
- Default Value 5
- Required
- Show in listing
-
Create a contentlet and enter any valid value
-
Save OR Save and Publish
-
Edit the contentlet
-
Clear out the field so it is null
-
Save OR Save and Publish
Result: the contentlet is saved (and the field retains its earlier value). It should instead not save, because a required field was not entered.
There is no error in the log but there is an info message:
[12/05/15 08:29:47:119 EDT] INFO web.ContentletWebAPIImpl: Unable to set field whole number to value
Issue still persists Tried to clear out "Sort Order" field to become null and got the message below:

This time I did get an error in the logs: https://gist.github.com/shaydotcms/6c1a686ede2e476402fe0e44f694a815
Tested locally in: Win7 Pro SP1 // SQLServer 2012 // FF Mac OS 10.10 // MySQL 5.6.23 // Chrome
@shaydotcms original issue is that a required field was allowed to be saved without any value.If you are getting that error it means it can not be saved now which is good.
Added issue #8949 in regards to incorrect message