Feature #54600

Request arguments not available in all HTTP methods

Added by Jesper Paardekooper almost 8 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Could have
Category:
Http
Target version:
-
Start date:
2013-12-26
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When building a REST service that uses the PATCH method, arguments are not available because of the following restriction:

Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Http/Request.php

    protected function buildUnifiedArguments(array $getArguments, array $postArguments, array $uploadArguments) {
        $arguments = $getArguments;
        $contentArguments = NULL;

        if ($this->method === 'POST') {
            $contentArguments = ($postArguments !== array()) ? $postArguments : $this->decodeBodyArguments($this->getContent(), $this->headers->get('Content-Type'));
        } elseif ($this->method === 'PUT') {
            $contentArguments = $this->decodeBodyArguments($this->getContent(), $this->headers->get('Content-Type'));
        }

For proper REST support, shouldn't this also allow PATCH and perhaps some more methods that may contain arguments?


Related issues

Related to TYPO3.Flow - Feature #56916: Support PATCH request method as of RFC5789New2014-03-14

Actions
Related to TYPO3.Flow - Feature #45293: More flexible parsing of body argumentsResolvedBastian Waidelich2013-02-082013-04-13

Actions

Also available in: Atom PDF