? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
20 Aug 2016

Summary of Changes

JApplicationCms::checkSession() tries to micro optimize the INSERT query it runs if creating a record in the #__session table by checking if the session is new. Honestly, there isn't a pressing need to do this though; the only column value that is different between the two steps of the conditional is the time column. So, only have a conditional on this value and have the query always insert the full data set.

As an added bonus, uses of the deprecated JObject API are removed from pulling data from the JUser object.

Additionally, the query's columns and values are moved out from hard-to-read inline values to arrays that are handled when calling the query builder's API methods.

Testing Instructions

This might fix #11556 so however folks are reproducing that issue. Otherwise, this is mainly review and make sure the CMS still works (if it fails it'll fail very quickly because it's called very early in the request cycle).

Documentation Changes Required

N/A

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Category Libraries
avatar mbabker mbabker - open - 20 Aug 2016
avatar mbabker mbabker - change - 20 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Added: ?
avatar onlinemindgem onlinemindgem - test_item - 20 Aug 2016 - Tested successfully
avatar onlinemindgem
onlinemindgem - comment - 20 Aug 2016

I have tested this item successfully on 1ddfc4f

I tested this mainly for #11556 and now sessions seem to be correct again (for Kunena in my case)


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

avatar aidanwhiteley
aidanwhiteley - comment - 21 Aug 2016

Thanks!
I have also tested this item successfully on 1ddfc4f but mainly for the issue mentioned in in #11556 (although a basic sanity test of the rest of the sites seems OK).


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

avatar zero-24 zero-24 - change - 21 Aug 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 21 Aug 2016

RTC based on testing. Thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 21 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-21 16:12:43
Closed_By wilsonge
avatar wilsonge wilsonge - close - 21 Aug 2016
avatar wilsonge wilsonge - merge - 21 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 21 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2016
Labels Removed: ?
avatar cuertech
cuertech - comment - 25 Aug 2016

Many thanks - have tested by applying fix to affected local and remote sites and all salient issues in #11556 are fully resolved - web peace resumed

Add a Comment

Login with GitHub to post a comment