? ? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
3 Dec 2016

Summary of Changes

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 previously
  • The application classes are restructured to not explicitly start the session; this defers the point JSession::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.

Testing Instructions

Sessions should continue to work just fine, #12108 should not be reintroduced.

Documentation Changes Required

N/A

avatar mbabker mbabker - open - 3 Dec 2016
avatar mbabker mbabker - change - 3 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Dec 2016
Category Installation Libraries
avatar zero-24
zero-24 - comment - 3 Dec 2016

Hmm travis fails here?

avatar mbabker mbabker - change - 3 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 3 Dec 2016
Category Installation Libraries Installation Libraries Unit Tests
avatar mbabker
mbabker - comment - 3 Dec 2016

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.

avatar wilsonge
wilsonge - comment - 8 Dec 2016

I've cherry-picked the test fixes into staging :) They were clearly correct

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Dec 2016

I have tested this item successfully on dec3a1a

installed patach login/logout on both site and admin, and with or without shared sessions (database sessions).
all worked fine and no php warning


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13074.

avatar andrepereiradasilva andrepereiradasilva - test_item - 18 Dec 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 18 Dec 2016

I have tested this item successfully on dec3a1a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13074.

avatar dgt41 dgt41 - test_item - 18 Dec 2016 - Tested successfully
avatar zero-24 zero-24 - change - 18 Dec 2016
Milestone Added:
avatar zero-24 zero-24 - change - 18 Dec 2016
Milestone Added:
Status Pending Ready to Commit
Labels Added: ?
avatar rdeutz rdeutz - change - 19 Dec 2016
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
avatar rdeutz rdeutz - close - 19 Dec 2016
avatar rdeutz rdeutz - merge - 19 Dec 2016
avatar rdeutz rdeutz - reference | b687a79 - 19 Dec 16
avatar rdeutz rdeutz - merge - 19 Dec 2016
avatar rdeutz rdeutz - close - 19 Dec 2016
avatar mbabker mbabker - head_ref_deleted - 19 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment