Skip to content

Limit size of search query for postgresql search

Dmitry Gruzd requested to merge limit-size-of-search-query into master

What does this MR do?

This MR implements limits for the search#show action: maximum of 64 terms or 4096 characters for non ES searches to prevent stack level too deep error from #31074 (closed).

If params[:search] is too big, it renders a flash[:alert] and prevents search from happening.

Screenshots

Screenshot_2019-12-26_at_18.09.19

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading