Task #83727

Epic #83894: PSR-15 Initiative

Reimplement EXT:redirect as PSR-15 middleware

Added by Benjamin Franzke over 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2018-01-29
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The redirect handling is a perfect usecase of PSR-15 middlewares.

Redirect handling wants to a) prevent the regular frontend rendering and b) return an own response. c) in case a no redirect matches it want's the regular RequestHandler to be invoked.

a) is doable by not invoking the RequestHandler a middleware gets passed by parameter
b) is simple by simply returning an own PSR-7 Response
c) is the standard case for a middleware.


Related issues

Related to TYPO3 Core - Feature #83725: Introduce PSR-15 HTTP Middleware support Closed 2018-01-29

Associated revisions

Revision f70522cf (diff)
Added by Benjamin Franzke over 1 year ago

[TASK] Rewrite the redirect handler as PSR-15 HTTP middleware

The code is restructured to clearly distinct between aborting
the middleware chain – returning an own response – and forwarding
the request to the next middleware/request handler.

Change-Id: I51d88b9f9fae8d2aafca343da1e67bf60182d765
Releases: master
Resolves: #83727
Reviewed-on: https://review.typo3.org/55539
Tested-by: TYPO3com <>
Reviewed-by: Susanne Moog <>
Tested-by: Susanne Moog <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Benjamin Franzke over 1 year ago

  • Related to Feature #83725: Introduce PSR-15 HTTP Middleware support added

#2 Updated by Susanne Moog over 1 year ago

  • Parent task set to #83652

#3 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55539

#4 Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55539

#5 Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55539

#6 Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55539

#7 Updated by Benjamin Franzke over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#8 Updated by Susanne Moog over 1 year ago

  • Parent task changed from #83652 to #83894

#9 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF