Catch throwables in IndexResource

Created on 8 January 2024, 6 months ago

Problem/Motivation

Passing an invalid offset/page currently result in 500 responses, with leaked error messages, e.g when used in combination with search_api_solr:
Uncaught PHP Exception TypeError: "Solarium\QueryType\Select\Query\Query::setStart(): Argument #1 ($start) must be of type int, string given

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024