? ? Pending

User tests: Successful: Unsuccessful:

avatar ReLater
ReLater
14 Sep 2018

Related Issue/Discussion #22137

Summary of Changes

Harden sql log files in Joomla 3 like other log files.
Let plugin "System - Log Rotation" delete and versioning sql log files, too

Add php filename extension to sql log files (before: *.sql; after: *.sql.php)
Add <?php die('Forbidden.'); ?> to these files, too, to protect them.

Testing Instructions

  • Install current staging. (= Joomla 3.9)

  • Have always a look on your logs directory to see what happens. And delete everything in it before you start.

  • To have an eye on the file timestamps during testing could also help a bit.

  • Activate plugin "System - Debug" with ALL options. Especially Log Executed Queries : YES.

  • Activate Debug (System) in Global Configuration.

  • Reload some pages.

  • In your logs directory you'll find some files with filename extension sql

  • Check that you can display them in your browser by just calling them via address bar.

  • Then activate plugin "System - Log Rotation". And set option Maximum Logs : 2.
    And Log Rotation (in days) : 0

  • Reload some pages and every page 3 times or more often.

  • In your logs directory you'll find files with a leading version number in filenames and one per group without. E.g. group
    1.deprecated.php
    2.deprecated.php
    deprecated.php (newest version)

BUT only php files NOT sql files. Because Log Rotator ignores them.

  • Apply patch
  • Clear your logs directory
  • Test again.

Expected but not actual result

  • New plugin "System - Log Rotation" deletes sql log files, too.
  • New plugin "System - Log Rotation" is versioning sql log files, too.
  • No chance to simply display log files in browser.
avatar ReLater ReLater - open - 14 Sep 2018
avatar ReLater ReLater - change - 14 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2018
Category Front End Plugins
avatar ReLater ReLater - change - 14 Sep 2018
Labels Added: ?
avatar ReLater ReLater - change - 14 Sep 2018
The description was changed
avatar ReLater ReLater - edited - 14 Sep 2018
avatar ReLater ReLater - change - 14 Sep 2018
The description was changed
avatar ReLater ReLater - edited - 14 Sep 2018
avatar ReLater ReLater - change - 14 Sep 2018
The description was changed
avatar ReLater ReLater - edited - 14 Sep 2018
avatar ReLater ReLater - change - 15 Sep 2018
The description was changed
avatar ReLater ReLater - edited - 15 Sep 2018
avatar ReLater ReLater - change - 15 Sep 2018
The description was changed
avatar ReLater ReLater - edited - 15 Sep 2018
avatar alikon
alikon - comment - 16 Sep 2018

Ok then when and if....

avatar brianteeman brianteeman - change - 16 Sep 2018
Title
[3.9] Add php extender & Forbidden head to sql log files
[3.9] Add php extension & Forbidden head to sql log files
avatar brianteeman brianteeman - edited - 16 Sep 2018
avatar Quy
Quy - comment - 25 Sep 2018

I have tested this item successfully on bdff568


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

avatar Quy Quy - test_item - 25 Sep 2018 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 10 Nov 2018

I have tested this item successfully on bdff568


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

avatar SharkyKZ SharkyKZ - test_item - 10 Nov 2018 - Tested successfully
avatar Quy Quy - change - 10 Nov 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Nov 2018

RTC


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

avatar mbabker mbabker - change - 12 Nov 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-11-12 23:59:51
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 12 Nov 2018
avatar mbabker mbabker - merge - 12 Nov 2018

Add a Comment

Login with GitHub to post a comment