Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrzej 1 post 71 karma points
    Feb 04, 2016 @ 21:17
    Andrzej
    0

    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: enter image description here 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

  • zell 37 posts 90 karma points
    Oct 17, 2017 @ 05:27
    zell
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft