On Wednesday, February 13, 2013 9:05:27 AM UTC-5, Ralph Siemsen wrote:
> Some of my users also run into the URI too long issue. It occurs when
> editing details of a test case via the "Test Runs" (tr_show_run.cgi).
> If you paste too much text, or use a lot of HTML tables and/or formatting,
> the limits for a GET request are easily exceeded.
I finally dug into the code and figured out the cause of this particular problem. The Test Case Runs page (tr_show_run.cgi) indeed uses GET instead of POST to update. The following patch fixes the issue:
diff a/testopia/js/caserun.js b/testopia/js/caserun.js
--- a/testopia/js/caserun.js
+++ b/testopia/js/caserun.js
@@ -1111,6 +1111,7 @@ CaseRun = function(){
params.case_id = Ext.getCmp('caserun_grid').getSelectionModel().getSelected().get('case_id');
params.action = 'update_doc';
testopia_form.submit({
+ method: 'POST',
url: 'tr_process_case.cgi',
params: params,
success: function(){
It's also necessary to regenerate the testopia.all.js and/or testopia.all.ycomp.js files, since these are used by default on production server, rather than the individual *.js files.
Thanks,
-Ralph