stable

Clone or download

Read-only

Introduce a limit with the depth of AST

This is a part of story #8858 query tracker with expressions To test: Configure the limit in Siteamdin > Tracker > Report and set the value equals to a small variable as 4 and test those following queries: - A or B (there is no errors) - A or B and C (there is an error: the tree depth exceeds the limit) Change-Id: I32a3f212152ac127471bfa451ed9423c534b4b5f

Modified Files

Name
M plugins/tracker/db/install.sql +7 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201612291507_add_report_config.php +68 −0 Go to diff View file
M plugins/tracker/include/Tracker/Config/ConfigRouter.php +19 −5 Go to diff View file
M plugins/tracker/include/Tracker/Config/SectionsPresenter.php +9 −4 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/DepthValidator.php +102 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LimitDepthIsExceededException.php +27 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/TrackerReportConfig.php +50 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/TrackerReportConfigController.php +83 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/TrackerReportConfigDao.php +44 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/TrackerReportConfigPresenter.php +56 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +32 −5 Go to diff View file
M plugins/tracker/include/autoload.php +8 −2 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +8 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +8 −0 Go to diff View file
M plugins/tracker/templates/siteadmin-config/deprecation.mustache +1 −0 Go to diff View file
M plugins/tracker/templates/siteadmin-config/emailgateway.mustache +1 −0 Go to diff View file
M plugins/tracker/templates/siteadmin-config/natures.mustache +1 −0 Go to diff View file
A plugins/tracker/templates/siteadmin-config/tracker-report-config.mustache +50 −0 Go to diff View file
A plugins/tracker/tests/Tracker/Report/Query/Advanced/Grammar/DepthValidatorTest.php +60 −0 Go to diff View file
M plugins/tracker/www/config.php +9 −0 Go to diff View file