Bug #3121

canProcessRequest is not called in ActionControllers

Added by Bastian Waidelich almost 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
MVC
Target version:
-
Start date:
2009-04-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

It seems, canProcessRequest() is never called in Action Controllers, so CLI-Controllers can be called through the browser currently.
In processRequest() of \F3\FLOW3\MVC\Controller\ActionController s.th. like

if (!$this->canProcessRequest($request)) throw new \F3\FLOW3\MVC\Exception\UnsupportedRequestType(...)

is missing. Maybe it is possible to add a
parent::processRequest($request, $response)
instead, as there is quite some duplicated code in both Classes.

#1

Updated by Robert Lemke almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2175.

Also available in: Atom PDF