Bug #86731

Frontend RequestHandler can set $_POST to null

Added by Daniel Goerz 10 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2018-10-24
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If the body of e POST request is empty, the Frontend RequestHanlder sets $_POST to null wich leads to all kinds of errors.

One to reproduce:
1. Add a gp:myVar to your TypoScript when rendering any CObject
2. Make a POST request
3. An exception is thrown because $_POST is null but is treated as an array everywhere


Related issues

Related to TYPO3 Core - Task #86458: Merge PSR-7 request and _GET/_POST parameters Closed 2018-09-29

Associated revisions

Revision 65148aae (diff)
Added by Daniel Goerz 10 months ago

[BUGFIX] Assure that $_POST is never set to null

Resolves: #86731
Releases: master
Change-Id: Ia48925cf98637d7c7b2ecfb071bc935508032dec
Reviewed-on: https://review.typo3.org/58682
Tested-by: TYPO3com <>
Reviewed-by: Daniel Sattler <>
Tested-by: Daniel Sattler <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Daniel Goerz 10 months ago

  • Related to Task #86458: Merge PSR-7 request and _GET/_POST parameters added

#2 Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

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/58682

#3 Updated by Gerrit Code Review 10 months 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/58682

#4 Updated by Anonymous 10 months ago

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

#5 Updated by Benni Mack 3 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF