SSL Verification disabled by default for existing websites after update

Created on 29 October 2024, 2 months ago

Problem/Motivation

The https://www.drupal.org/project/search_api_opensearch/issues/3381020 ✨ Ability to disable SSL verification for dev instances Active issue was merged, not considering my objections/patch, merged code results in SSL verification being disabled for websites with the module already installed after update to newest version and there is error message returned when getClient function is executed.

Warning: Undefined array key "ssl_verification" in Drupal\search_api_opensearch\Plugin\OpenSearch\Connector\StandardConnector->getClient() (line 101 of modules/contrib/search_api_opensearch/src/Plugin/OpenSearch/Connector/StandardConnector.php).

Steps to reproduce

1. Update the module to 2.2.0.
2. Visit admin/config/search/search-api - you should see error.

Proposed resolution

As proposed here: https://www.drupal.org/files/issues/2024-10-28/search_api_opensearch-ssl... β†’ update the getConfiguration function and use it instead when passing data, instead of currently used $this->configuration.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland ad0z

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024