User tests: Successful: Unsuccessful:
This is only the lazy session starting code from #10905.
JSession
can now lazy start a session; calls to get()
, set()
, has()
, and clear()
will start the session if it hasn't explicitly been started previouslyJSession::start()
is called from the application constructors to one of the first actions done after $app->execute()
is called. The advantage here is that now sessions are started after the application has been instantiated and set to JFactory::$application
, meaning a session startup error should result in a real error page instead of the plain "Application Instantiation Error" message.Sessions should continue to work just fine, #12108 should not be reintroduced.
N/A
Status | New | ⇒ | Pending |
Category | ⇒ | Installation Libraries |
Labels |
Added:
?
|
Category | Installation Libraries | ⇒ | Installation Libraries Unit Tests |
Yep, this was the set of changes that needed the added session mocks in the tests from the old PR. Since Joomla has a lovely deep rooted set of inter-dependencies.
I've cherry-picked the test fixes into staging :) They were clearly correct
I have tested this item
installed patach login/logout on both site and admin, and with or without shared sessions (database sessions).
all worked fine and no php warning
I have tested this item
Milestone |
Added: |
Milestone |
Added: |
||
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-19 14:51:11 |
Closed_By | ⇒ | rdeutz | |
Labels |
Hmm travis fails here?