Creating a block error with http 409 (Conflict)

Vote:
 

Hi,

I have a page with the following properties:

  1. Video
  2. Image
  3. Content area

The video have a custom attribute that validates that the editor must set a value for either video or image.

When I clear either video or image I and then proceed to create a new block in the content area, I'm unable to create a block in the content area.  In my console Episerver responds with a http 409 error (Conflict). Which makes sense because the page in an invalid state.  But I think this is an error as editors should still be allowed to continue adding blocks to the content area.

Does anyone know if this is a bug or if there is a way to get pass it?

Thanks

#194143
Jun 14, 2018 13:21
Vote:
 

Hi Daniel,

This looks suspiciously like this issue here:

https://support.episerver.com/hc/en-us/articles/360002910312-409-conflict-Creating-page-block

If so, the issue is that the Episerver services use non-200 response codes when returning data to the client and, if your error configuration intercepts these responses, the client will error. Setting the "existingResponse" mode on the <httperrors> element to "PassThrough" should resolve the issue though, to avoid impacting the rest of your site, you may want to specify this just for <location path="EPiServer">. For example (cut down for clarity):

  <location path="EPiServer">
    <system.webServer>
      <httpErrors errorMode="Custom" existingResponse="PassThrough">
      </httpErrors>
    </system.webServer>
  </location>

Hope that helps.

#194163
Jun 14, 2018 17:53
Vote:
 

Hi Paul,

thanks for the example. I've used the snipped but unfortuantly still getting the 409 error.

Thanks

#194191
Jun 15, 2018 11:39
Vote:
 

If you are using a version earlier than 11.8 this can be caused by a custom validator which fires a validation message, but is not displayed due to bug Bug - CMS-11522 

Read more on https://world.episerver.com/support/Bug-list/bug/CMS-11522

#198499
Oct 30, 2018 5:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.