« Previous | Next » 

Revision bdc1c89a

IDbdc1c89ad2d3cba08767d8d45b9bfb4dbe12ff45
Parent 002243ac

Added by Bastian Waidelich over 7 years ago

[!!!][BUGFIX] Return 404 status code for removed entities

With this change the status code for persisted entities that can't
be found is no longer ``500``.

Background:
When an exception is thrown in ``PropertyMapper::convert()`` it is
always wrapped in a ``\TYPO3\Flow\Property\Exception`` leading to the
default exception handling which sets the status code of the HTTP
response to 500.

This is a breaking change only in the case that one relied on the
(incorrect) behavior of returning a status code 500 for entities that
couldn't be found.

Change-Id: Ic37008975e9c58ec9bea9d4277ee4621e6de061b
Resolves: #55618
Releases: master

  • added
  • modified
  • copied
  • renamed
  • deleted