EventSubscriber - SearchAPISubscriber - Keys fail on multi-dimensional arrays

Created on 28 March 2025, about 1 month ago

Problem/Motivation

Most recent release causing key validation errors when parsing multi-dimensional arrays of values.
While the search runs and site visitors can continue to use the search api result set. Every single search requests generates 1 to 20 warning errors in the Drupal logs.

Compound this with 1000s if not 100,000s of concurrent users and you get a log race condition consuming hosting resources.

Steps to reproduce

When searching via a search API with facets submit keyword and select one or more facet values.

Proposed resolution

Properly evaluate keys and detect multi-dimensional arrays, walk and flatten values prior to parsing.

Working patch attached.

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States emptyvoid

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

Comments & Activities

Production build 0.71.5 2024