? ? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
21 Jan 2018

Pull Request for Issue #19304

Summary of Changes

If a custom path for session data stored in the filesystem is given, validate the path exists and attempt to create it if it does not exist. If the path cannot be created, don't use it as the session path which effectively brings the site down. Additionally, the path is cleaned while saving which helps to ensure the stored filepath is appropriate for the system (i.e. on Windows the right separator will be used).

Testing Instructions

  • Apply patch
  • Try changing the session filesystem path to a custom path that doesn't exist on your filesystem
  • If the path can be created, the path stored to the configuration file should be a cleaned path for your OS
  • If the path cannot be created, you should get an error and the configuration will have the previous value of this field
avatar mbabker mbabker - open - 21 Jan 2018
avatar mbabker mbabker - change - 21 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2018
Category Administration com_config Language & Strings
avatar brianteeman
brianteeman - comment - 22 Jan 2018

something not right
mbab

avatar brianteeman
brianteeman - comment - 22 Jan 2018

Forgot to add this was tested on windows

avatar mbabker
mbabker - comment - 22 Jan 2018

Forgot to add this was tested on windows

I'd find it rather peculiar if you had a C:\ drive on a Linux system ?

avatar joomdonation
joomdonation - comment - 29 Jan 2018

Look like the error causes by path filter https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_config/forms/application.xml#L851 , at least it doesn't work for Windows, for example the code below return empty string:

$filter = new \Joomla\CMS\Filter\InputFilter();
echo $filter->clean('D:\\www', 'PATH');
avatar mbabker mbabker - change - 2 Jun 2018
Labels Added: ? ?
avatar mbabker
mbabker - comment - 4 Jul 2018

Last I was aware the bug and this fix are still valid...

avatar wilsonge wilsonge - change - 8 Aug 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-08-08 15:36:34
Closed_By wilsonge
avatar wilsonge wilsonge - close - 8 Aug 2018
avatar wilsonge wilsonge - merge - 8 Aug 2018

Add a Comment

Login with GitHub to post a comment