Project

General

Profile

Actions

Feature #77025

open

f:form: Disable referrer information

Added by Christian Weiske almost 8 years ago. Updated over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-07-11
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

On validation errors, extbase forwards to the referring action - potentially breaking actions because the original plugin settings are not available (see #70384).

Having the option to disable the inclusion of the referrer information in <f:form> would prevent this type of bug.

Please add an argument to <f:form> to disable the inclusion of referrer information.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #70384: Make it possible to redirect (instead of forwarding) to referring action on validation errorClosed2015-10-05

Actions
Related to TYPO3 Core - Bug #80341: wrong hiiden parts in the f:form -ViewheleprClosed2017-03-18

Actions
Actions #1

Updated by Nicole Cordes almost 8 years ago

  • Status changed from New to Needs Feedback

Hi Christian,

you can simply overwrite the errorAction() in your controller and do whatever suits your controller. IMHO there won't be an option to disable forwarding.

Actions #2

Updated by Christian Weiske almost 8 years ago

Overrriding errorAction() that influences all actions of a controller is a bit much if I just want a single form to not have a referrer.

But it's your choice as always.

Actions #3

Updated by Mona Muzaffar about 7 years ago

  • Status changed from Needs Feedback to New
Actions #4

Updated by Dieter Porth about 7 years ago

I think, Christian is right.
If you want to build a form for a frontend-editing with IRRE-Elements, the TYPO3-assmption to the evoiroment will destroy your try.

The behavior of the current f:form-viewhelper don't fit the documentation. You find no hint in the documentation, that the f:form:viewhelper is restricted to a special plugin-context. (https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Form.html - last visit: 2017-04-23)
The current behavior of the form-viewhelper is a bug without the wished feature.

Actions #5

Updated by Daniel Siepmann over 3 years ago

The concrete errorAction to use can be configured via a property of the controller.
That way one could change it via initializeAction or concrete initializeExampleAction.

Still not sure whether that helps, but at least it is not true that you only have one single error action for all actions.

Also I don't think one should follow those paths and scenarios. As already mentioned in the referenced issue #70384 there are other more clean ways.
Also maybe use ext:form for such scenarios.

Actions

Also available in: Atom PDF