Activity log for bug #1417364

Date Who What changed Old value New value Message
2015-02-03 03:33:06 Aaron Wells bug added bug
2015-02-03 03:44:18 Aaron Wells description When you use Mahara's makefile to push a patch to reviews.mahara.org, it runs a minaccept script which checks for various simple errors. One of the things it includes is a check for the word "from" or "join" not followed by a curly bracket. The idea is that this is supposed to be a check for SQL queries that haven't properly escaped table names. In order to support the $cfg->dbprefix setting, raw SQL is supposed to surround table names with curly brackets, e.g. "select * from {view}". The problem is, this check throws a LOT of false positives, because the word "from" is a common English word, often used in comments, function names, and variables. These false positives then lead people to ignore the rest of the output from the minaccept script. Robert suggested that we should do this: 1. Drop the from/join check in minaccept 2. Update the Behat test so that it runs with a $cfg->dbprefix setting, so that running the Behat tests will help check for problems with this. When you use Mahara's makefile to push a patch to reviews.mahara.org, it runs a minaccept script which checks for various simple errors. One of the things it includes is a check for the word "from" or "join" not followed by a curly bracket. The idea is that this is supposed to be a check for SQL queries that haven't properly escaped table names. In order to support the $cfg->dbprefix setting, raw SQL is supposed to surround table names with curly brackets, e.g. "select * from {view}". The problem is, this check throws a LOT of false positives, because the word "from" is a common English word, often used in comments, function names, and variables. It also throws a false positive if you format a multi-line query so that "from" is on a line by itself (which I like to do). These false positives then lead people to ignore the rest of the output from the minaccept script. Robert suggested that we should do this: 1. Drop the from/join check in minaccept 2. Update the Behat test so that it runs with a $cfg->dbprefix setting, so that running the Behat tests will help check for problems with this.
2015-02-03 21:54:55 Robert Lyon mahara: status In Progress Fix Committed
2015-02-03 21:54:58 Robert Lyon mahara: milestone 15.04.0
2015-02-03 21:55:05 Robert Lyon nominated for series mahara/1.10
2015-02-03 21:55:05 Robert Lyon bug task added mahara/1.10
2015-02-03 21:55:05 Robert Lyon nominated for series mahara/1.9
2015-02-03 21:55:05 Robert Lyon bug task added mahara/1.9
2015-02-03 21:55:05 Robert Lyon nominated for series mahara/1.8
2015-02-03 21:55:05 Robert Lyon bug task added mahara/1.8
2015-02-03 21:55:14 Robert Lyon mahara/1.10: status New Fix Committed
2015-02-03 21:55:17 Robert Lyon mahara/1.8: status New Fix Committed
2015-02-03 21:55:19 Robert Lyon mahara/1.9: status New Fix Committed
2015-02-03 21:55:24 Robert Lyon mahara/1.10: importance Undecided Medium
2015-02-03 21:55:26 Robert Lyon mahara/1.8: importance Undecided Medium
2015-02-03 21:55:28 Robert Lyon mahara/1.9: importance Undecided Medium
2015-02-03 21:55:33 Robert Lyon mahara/1.10: milestone 1.10.3
2015-02-03 21:55:36 Robert Lyon mahara/1.8: milestone 1.9.5
2015-02-03 21:55:41 Robert Lyon mahara/1.8: milestone 1.9.5 1.8.7
2015-02-03 21:55:43 Robert Lyon mahara/1.9: milestone 1.9.5
2015-02-03 21:55:47 Robert Lyon mahara/1.10: importance Medium High
2015-02-03 21:55:49 Robert Lyon mahara/1.8: importance Medium High
2015-02-03 21:55:51 Robert Lyon mahara/1.9: importance Medium High
2015-02-12 03:11:50 Aaron Wells mahara: status Fix Committed Fix Released
2015-02-12 03:11:53 Aaron Wells mahara/1.10: status Fix Committed Fix Released
2015-02-12 03:11:55 Aaron Wells mahara/1.8: status Fix Committed Fix Released
2015-02-12 03:11:57 Aaron Wells mahara/1.9: status Fix Committed Fix Released