? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
8 May 2016

Summary of Changes

A check is added to JSessionStorage::getInstance() to ensure the session store that is about to be instantiated is supported on the platform and will gracefully exit the app if not.

Testing Instructions

Set your configuration's session_handler value to use a session store that isn't supported on your platform. Pre-patch it will most likely lead to a fatal error or some other kind of Exception/Throwable depending on your setup; post-patch you should get a white page telling you the session store isn't supported.

avatar mbabker mbabker - open - 8 May 2016
avatar mbabker mbabker - change - 8 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 8 May 2016

Made two tests: Edited configuration.php manually

test 1: public $session_handler = 'memcache';
test 2: public $session_handler = 'sessiony';

Before patch: blank page with

Test 1: Error displaying the error page: Application Instantiation Error: Memcache Extension is not available
Test 2: Unable to load session storage class: sessiony

After patch: blank page with

Test 1: The memcache Session Storage is not supported on this platform.
Test 2: Unable to load session storage class: sessiony

No error page, justa blank page with those messages. Is this how it is supossed to work?

avatar mbabker
mbabker - comment - 8 May 2016

Yes, at least that's how the code's commented. If you want to try and change it to throwing Exceptions and making sure it doesn't break, you're welcome to, but the way I read the comment it was a purposeful design decision (which may not even be relevant anymore, especially as the session wouldn't even be started at this point).

avatar andrepereiradasilva andrepereiradasilva - test_item - 8 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 8 May 2016

I have tested this item :white_check_mark: successfully on bfa81de

ok then


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

avatar brianteeman brianteeman - change - 8 May 2016
Category Libraries
avatar alikon alikon - test_item - 29 May 2016 - Tested successfully
avatar alikon
alikon - comment - 29 May 2016

I have tested this item successfully on bfa81de


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

avatar brianteeman brianteeman - change - 29 May 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 29 May 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 29 May 2016
Milestone Added:
avatar roland-d roland-d - change - 31 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-31 08:22:31
Closed_By roland-d
avatar roland-d roland-d - close - 31 May 2016
avatar roland-d roland-d - merge - 31 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 31 May 2016
avatar roland-d roland-d - reference | c155797 - 31 May 16
avatar roland-d roland-d - merge - 31 May 2016
avatar roland-d roland-d - close - 31 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 31 May 2016
Labels Removed: ?
avatar roland-d
roland-d - comment - 31 May 2016

Thanks everybody

Add a Comment

Login with GitHub to post a comment