400 error on PostSave when mandatory property is not set
Hi.
I’m having issue with property validation in backoffice. In Document Type (in my case ‘Home’ in Fanoe starter kit) I’ve defined a mandatory property, type Media picker. When I’m trying to save content with given Document Type without setting value for this property, PostSave method returns 400 status code. What is interesting, validation message is displayed:
After some research I’ve found that this problem occurs for few property types, ie. Media picker, Member picker. For types like Date Picker, Textstring etc, validation works as expected – before executing PostSave method.
Here comes my question – is it ‘by design’ behavior? I’m asking because it causes some problems when trying to setup custom error pages. Error handling mechanism catches 400 response and validation errors are not displayed.
bump - i have an issue on a build that is 7.6.9. validation for textfield is fine but anything else the 400 response isn't containing the validation error info.
trying to debug but if any info on under the hood. that would be welcome.
400 error on PostSave when mandatory property is not set
Hi. I’m having issue with property validation in backoffice. In Document Type (in my case ‘Home’ in Fanoe starter kit) I’ve defined a mandatory property, type Media picker. When I’m trying to save content with given Document Type without setting value for this property, PostSave method returns 400 status code. What is interesting, validation message is displayed: After some research I’ve found that this problem occurs for few property types, ie. Media picker, Member picker. For types like Date Picker, Textstring etc, validation works as expected – before executing PostSave method. Here comes my question – is it ‘by design’ behavior? I’m asking because it causes some problems when trying to setup custom error pages. Error handling mechanism catches 400 response and validation errors are not displayed.
Tested on Umbraco version: 7.3.4 and 7.3.7
Regards, Andrzej
bump - i have an issue on a build that is 7.6.9. validation for textfield is fine but anything else the 400 response isn't containing the validation error info. trying to debug but if any info on under the hood. that would be welcome.
is working on a reply...