?
avatar PhilETaylor
PhilETaylor
8 Jan 2021

Steps to reproduce the issue

Using the bug in #31920 set the $log_path value to a folder which Joomla has no write permissions outside of JPATH_BASE

Eg: ../../../../../../../../../test

On a Mac, setting this to /test will also break it, but / is interpreted as JPATH_BASE for some reason

Expected result

Its just logging, so should fail gracefully, or at most with a warning.

Actual result


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69632 bytes) in /Users/phil/Downloads/Joomla_4.0.0-beta6-Beta-Full_Package/libraries/src/Log/LogEntry.php on line 121

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /Users/phil/Downloads/Joomla_4.0.0-beta6-Beta-Full_Package/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 14

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0

System information (as much as possible)

Additional comments

avatar PhilETaylor PhilETaylor - open - 8 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Jan 2021
avatar PhilETaylor PhilETaylor - change - 8 Jan 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 8 Jan 2021
avatar PhilETaylor PhilETaylor - change - 8 Jan 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 8 Jan 2021
avatar joomdonation
joomdonation - comment - 7 Feb 2021

PR PR #32339 should address this issue adds some validation to make sure log_path is valid/writable and should address this issue.

avatar alikon
alikon - comment - 7 Feb 2021

please test #32339

avatar alikon alikon - change - 7 Feb 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-02-07 08:42:32
Closed_By alikon
avatar alikon alikon - close - 7 Feb 2021

Add a Comment

Login with GitHub to post a comment