Actions
Bug #102529
openProperly support HTTP Status Code 201 within extbase
Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2023-11-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Sources regarding HTTP Status Code 201:
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201
- https://www.rfc-editor.org/rfc/rfc9110#name-201-created
The 201 status code can contain a location header, like the 3xx redirect status codes.
This is currently not possible via Extbase, as Extbase has hard checks regarding >= 300 within the Bootstrap class after internal dispatching of the request. Returning a redirect with 201 and a url is therefore not working as expected.
Browsers (tested with Firefox) probably do not support this, but APIs might need to conform to this.
The corresponding checks regarding >=300 could be adjusted to also check for 201 status code.
Actions