Bug #37227

securityContext->getParty is not available in widget context

Added by Adrian Föder about 1 year ago. Updated 11 months ago.

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

0%

Category:Session
Target version:-
PHP Version:5.4 Complexity:
Has patch:No FLOW3 version affected:(any)
Votes: 0

Description

consider the following scenario:

 1 class SampleViewHelper extends \TYPO3\Fluid\Core\Widget\AbstractWidgetViewHelper {
 2 
 3     /**
 4      * @var bool
 5      */
 6     protected $ajaxWidget = TRUE;
 7 
 8     /**
 9      * @FLOW3\Inject
10      * @var ...\ViewHelpers\Widget\Controller\SampleController
11      */
12     protected $controller;
13 
14     /**
15      * @return array
16      */
17     protected function getWidgetConfiguration() {
18         $something = new \AnEntity();
19 
20 ...
21 

and

 1 class AnEntity {
 2 
 3     /**
 4      * @FLOW3\Inject
 5      * @var \TYPO3\FLOW3\Security\Context
 6      */
 7     protected $securityContext;
 8 
 9     /**
10      */
11     public function initializeObject() {
12         $this->securityContext->getParty();
13 
14 ...

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 ... New 2012-03-21

History

Updated by Christian Mueller about 1 year ago

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

Updated by Karsten Dambekalns 12 months ago

  • Target version changed from 1.1 to 1.1 RC1

Updated by Karsten Dambekalns 11 months ago

  • Status changed from New to On Hold
  • Target version deleted (1.1 RC1)
  • FLOW3 version affected changed from Git master to (any)

Also available in: Atom PDF