SearchSubscriber should only react if server is in Acquia

Created on 4 January 2022, over 3 years ago
Updated 18 September 2024, 7 months ago

Problem/Motivation

SearchSubscriber events currently react to events no matter the search server. This causes that in a local environment with a local Solr server it attempts to authenticate some requests and fails. A visible symptom of this is that the indexes overview at /admin/config/search/search-api shows error for a valid local solr server.

Steps to reproduce

Having a site hosted in Acquia, clone it locally and spin it up with a local solr server (you could use ddev, docksal or similar to ease this).
Change Solr index to local solr server.

If you visit /admin/config/search/search-api, the valid local solr server will show up as unavailable because of this error.

Proposed resolution

preExecuteRequest and postExecuteRequest should verify the current request is running against Acquia server and only run if that's the case.

Remaining tasks

Provide a patch, review, test and commit.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡·Costa Rica kporras07

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024