From eca51a5df0fd7cd89ca47458ac4b389f69e9838e Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" Date: Wed, 16 Apr 2008 00:48:29 +0000 Subject: [PATCH] taint check caserun_id on attaching bugs. links in completion report were incomplete. git-svn-id: svn://10.0.0.236/trunk@250284 18797224-902f-48f8-a5cc-f745e15eee43 --- .../webtools/testopia/Bugzilla/Testopia/TestCase.pm | 1 + .../en/default/testopia/reports/completion.html.tmpl | 12 ++++++------ mozilla/webtools/testopia/testopia/js/caserun.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm b/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm index 4d2dd19709b..ca3657a56b1 100644 --- a/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm +++ b/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm @@ -823,6 +823,7 @@ sub attach_bug { my $self = shift; my ($bugids, $caserun_id) = @_; my $dbh = Bugzilla->dbh; + trick_taint($caserun_id); $bugids = $self->_check_bugs($bugids, "ATTACH"); diff --git a/mozilla/webtools/testopia/template/en/default/testopia/reports/completion.html.tmpl b/mozilla/webtools/testopia/template/en/default/testopia/reports/completion.html.tmpl index 24ebd1703b1..42b75780406 100644 --- a/mozilla/webtools/testopia/template/en/default/testopia/reports/completion.html.tmpl +++ b/mozilla/webtools/testopia/template/en/default/testopia/reports/completion.html.tmpl @@ -71,12 +71,12 @@ - - - - - - + + + + + +
Total:[% total FILTER none %]
Completed:[% completed FILTER none %][% percent_completed || 0 FILTER none %]%
IDLE:[% idle FILTER none %][% percent_idle || 0 FILTER none %]%
PASSED:[% passed FILTER none %][% percent_passed || 0 FILTER none %]%
FAILED:[% failed FILTER none %][% percent_failed || 0 FILTER none %]%
BLOCKED:[% blocked FILTER none %][% percent_blocked || 0 FILTER none %]%
Total:[% total FILTER none %]
Completed:[% completed FILTER none %][% percent_completed || 0 FILTER none %]%
IDLE:[% idle FILTER none %][% percent_idle || 0 FILTER none %]%
PASSED:[% passed FILTER none %][% percent_passed || 0 FILTER none %]%
FAILED:[% failed FILTER none %][% percent_failed || 0 FILTER none %]%
BLOCKED:[% blocked FILTER none %][% percent_blocked || 0 FILTER none %]%
diff --git a/mozilla/webtools/testopia/testopia/js/caserun.js b/mozilla/webtools/testopia/testopia/js/caserun.js index 887e47027e3..dff624c2a71 100755 --- a/mozilla/webtools/testopia/testopia/js/caserun.js +++ b/mozilla/webtools/testopia/testopia/js/caserun.js @@ -144,7 +144,7 @@ CaseRunListGrid = function(params, cfg){ this.params = params; this.store = new Ext.data.GroupingStore({ url: 'tr_list_caseruns.cgi', - baseParams: {ctype: 'json', isactive:1}, + baseParams: {ctype: 'json'}, reader: new Ext.data.JsonReader({ totalProperty: 'totalResultsAvailable', root: 'Result',