Bug #88631

Page type parameter is ignored in POST requests/parameters

Added by DMK E-BUSINESS GmbH 6 months ago. Updated 5 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Frontend
Start date:
2019-06-26
Due date:
% Done:

0%

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

Description

Since TYPO3 9 the page type parameter is ignored when set in POST parameters (for example from a form field). If it's set in GET parameters (query string) everything is fine. This is because the PageArguments object is instantiated at several points with only the type parameter from the query params (for example in \TYPO3\CMS\Frontend\Middleware\PageResolver) not respecting the POST parameters. On the other hand the TypoScriptFrontendController is instantiated in \TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization with GeneralUtility::_GP('type') handling both POST and GET parameters. This is inconsistent behaviour and should be fixed as soon as possible. Or is this intended and not a bug?

History

#1 Updated by Benni Mack 5 months ago

  • Status changed from New to Accepted

definitively a bug. However, I wonder how the URL to the page is generated (via <f:form> in fluid or typolink?). This would be great so we can add proper tests to it.

#2 Updated by DMK E-BUSINESS GmbH 5 months ago

The link to the page is generated with a typolink but has no type parameter. The type parameter is added to the POST request through JavaScript as the request is done with Ajax.

Also available in: Atom PDF