[FLOW3-general] Beginner issue with createAction() with two parameters
Robert Lemke
robert at typo3.org
Wed Dec 23 14:49:18 CET 2009
Hi Christine,
the Request Hash implementation in FLOW3 alpha 6 unfortunately is incomplete and we will replace parts of it by a more sophisticated content security mechanism. It seems you stumbled over the loose ends of the current implementation.
I suggest that you, for the time being, remove the HMAC check from the ActionController: Just add a "return;" as the first line of the checkRequestHash() method.
And let me know if you face any further problems ...
Cheers,
robert
Am 23.12.2009 um 00:56 schrieb Christine Gerpheide:
> I'm currently having an issue calling a simple createAction(). I would like
> the action inside of my Tab Controller to take two parametrs, $page and
> $newTab, and inside the action it will call $page->addTab($newTab) to create
> a new Tab. This action happens when the user submits a form with the tab's
> properties, also passing the page as an argument. However, I am always
> getting the exception "#1255082824: Request hash (HMAC) checking failed. The
> parameter __hmac was invalid or not set, and objects were modified."
>
> My form tag starts like this:
> <f:form method="post" action="create" name="newTab" arguments="{page :
> page}">
>
> And this is the signature of the createAction:
> /**
> * @param \F3\...\Domain\Model\Page $page The parent page
> * @param \F3\...\Domain\Model\Tab $newTab The new tab
> * @return void
> */
> public function createAction(\F3\...\Domain\Model\Page
> $page, \F3\...\Domain\Model\Tab $newTab) { ... }
>
> When I remove all references to $page, it successfully comes inside the
> method. Should I be creating the form another way, or is there a better way
> to do this? Any insight here would be very helpful!
More information about the FLOW3-general
mailing list