Bug #42434

Resource handler not available when session is initialized

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

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Session
Start date:
2012-10-26
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:
easy

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.

#1

Updated by Gerrit Code Review almost 9 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 9 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 9 years ago

  • Category set to Session
  • Assignee set to Robert Lemke
  • Target version set to 2.0 beta 1
#4

Updated by Robert Lemke almost 9 years ago

  • Tracker changed from Feature to Bug
  • Subject changed from Bootstrap: Resource before session to Resource handler not available when session is initialized
#5

Updated by Gerrit Code Review almost 9 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 9 years ago

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

Also available in: Atom PDF