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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/