Bug #42434

Resource handler not available when session is initialized

Added by Ferdinand Kuhl almost 3 years ago. Updated almost 3 years ago.

Status:Resolved Start date:2012-10-26
Priority:Should have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:Session
Target version:TYPO3 Flow Base Distribution - 2.0 beta 1
PHP Version:5.3 Complexity:easy
Has patch:No Affected Flow version:Git 1.2 (master)

Description

In current master (and all earlier releases) the bootstrap initializes the session before the resource wrappers. If you now try to attach an Image(Variant) from TYPO3.Image to a session, this Variant first checks (during initializeObject()) if the resource is available - which simply is not possible at the session __wakeup event, as there are no registered stream-wrappers yet.

I suggest: Change the order and let session and resource - Steps swap their places.

Associated revisions

Revision 84ef743d
Added by Ferdinand Kuhl almost 3 years ago

[BUGFIX] Initialize resource wrapper before session

If you try to attach a resource-dependent object to a session, this
will fail, as the _wakeup() method is called before the resource
wrappers are initialized.

This patch makes sure that the resource framework is initialized
before the session framework in the standard runtime sequence of the
bootstrap.

Fixes: #42434
Releases: 1.2

Change-Id: I22bf23618527164cad6a282bc8230a69ad309ed6

History

#1 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15964

#2 Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15964

#3 Updated by Robert Lemke almost 3 years ago

  • Category set to Session
  • Assigned To set to Robert Lemke
  • Target version set to 2.0 beta 1

#4 Updated by Robert Lemke almost 3 years ago

  • Tracker changed from Feature to Bug
  • Subject changed from Bootstrap: Resource before session to Resource handler not available when session is initialized
  • Affected Flow version set to Git 1.2 (master)

#5 Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15964

#6 Updated by Ferdinand Kuhl almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF