Bug #37227

securityContext->getParty is not available in widget context

Added by Adrian Föder about 9 years ago. Updated about 9 years ago.

Status:
On Hold
Priority:
Must have
Assignee:
-
Category:
Session
Target version:
-
Start date:
2012-05-16
Due date:
% Done:

0%

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

Description

consider the following scenario:

class SampleViewHelper extends \TYPO3\Fluid\Core\Widget\AbstractWidgetViewHelper {

    /**
     * @var bool
     */
    protected $ajaxWidget = TRUE;

    /**
     * @FLOW3\Inject
     * @var ...\ViewHelpers\Widget\Controller\SampleController
     */
    protected $controller;

    /**
     * @return array
     */
    protected function getWidgetConfiguration() {
        $something = new \AnEntity();

...

and

class AnEntity {

    /**
     * @FLOW3\Inject
     * @var \TYPO3\FLOW3\Security\Context
     */
    protected $securityContext;

    /**
     */
    public function initializeObject() {
        $this->securityContext->getParty();

...

the Session implementation crashes; concretely the following error occurs:

#1: Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/Data/Temporary/Development/Sessions) in /var/www/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Session_PhpSession_Original.php line 332 

Related issues

Related to TYPO3.Flow - Bug #35083: involving SecurityContext in Widget's __wakeup situation leads to an exceptionNew2012-03-21

Actions
#1

Updated by Christian Müller about 9 years ago

I couldn't reproduce this in PHP 5.3 seems to be really something with PHP 5.4, more tests are required here.

#2

Updated by Karsten Dambekalns about 9 years ago

  • Target version changed from 1.1 to 1.1 RC1
#3

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from New to On Hold
  • Target version deleted (1.1 RC1)

Also available in: Atom PDF