Bugzilla – Attachment 189070 Details for
Bug 41185
internal server error on all searches with REST API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch
patch.txt (text/plain), 911 bytes, created by
Pablo
on 2025-11-05 09:01:37 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Pablo
Created:
2025-11-05 09:01:37 UTC
Size:
911 bytes
patch
obsolete
>diff --git a/Koha/REST/Plugin/Query.pm b/Koha/REST/Plugin/Query.pm >index 6f981bca1c..d9c3bc97f7 100644 >--- a/Koha/REST/Plugin/Query.pm >+++ b/Koha/REST/Plugin/Query.pm >@@ -194,6 +194,8 @@ is raised. > my $match = $reserved_params->{_match} // 'contains'; > > foreach my $param ( keys %{$filtered_params} ) { >+ if( $filtered_params->{$param} ) >+ { > if ( $match eq 'exact' || $filtered_params->{$param} =~ m[^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}] ) { > $params->{$param} = $filtered_params->{$param}; > } elsif ( $match eq 'contains' ) { >@@ -209,6 +211,7 @@ is raised. > # prevent invalid params to be passed > Koha::Exceptions::WrongParameter->throw("Invalid value for _match param ($match)"); > } >+ } > } > > return $params;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 41185
: 189070