https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30818
Bug ID: 30818
Summary: REST API: Why does a wrong column name still cause a
general 500 while validating exhaustively?
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
This might just be a dumb question:
While testing 30790 and tweaking the test a bit, I found this:
my $api_filter = encode_json({'isbn' => '123', 'xx1' => 'a2' });
$t->get_ok("//$userid:$password@/api/v1/biblios?q=$api_filter");
I am sending xx1 to Koha/REST/V1/Biblios, sub list.
To my surprise, this doesnt trigger an error that says xx1 is not a valid
biblio column. It appears that this query is just sent to DBIx. It crashes and
the Exceptions module returns 500 Something went wrong.
How is that possible? I stumble over all kinds of validation, extracting and
merging parameters etc. etc.
--
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/