[Koha-bugs] [Bug 31025] New: Reports with too many params can exceed length limit of URI
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 23 12:31:41 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31025
Bug ID: 31025
Summary: Reports with too many params can exceed length limit
of URI
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Reports
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
Our reports submit the form as a GET request - this is useful for saving links
to report results, however, when using the <<Param|list>> feature, too much
data can be submitted to the form and cause a 414 error:
Request-URI Too Long
The requested URL's length exceeds the capacity limit for this server.
Apache/2.4.53 (Debian) Server at kohadev-intra.myDNSname.org Port 80
We should, optionally, submit large requests as 'POST'
Dirty sample code:
$("#rep_guided_reports_start textarea[id^='sql_params']").change(function(){
console.log('Garsh');
let param_length = 0;
$("textarea[id^='sql_params']").each(function(index,value){
param_length += $(this).val().length;
});
if( param_length > 900 ){
$("#rep_guided_reports_start form").attr('method','post');
$("#rep_guided_reports_start form input[type='submit']").after('<p>Too much
params! Wil submit as post!</p>');
}
});
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list