Details
-
Bug
-
Resolution: Fixed
-
High
-
3.1.1
-
None
Description
When configuring Elasticsearch engine using SSL cert_key may not always be necessary - leaving it as null creates an exception.
Steps to reproduce:
1. Setup Elasticsearch.
2. Provide config for SSL connection - an example from the documentation can be used.
3. Set cert_key to ~ (null value) in config/packages/ezplatform_elastic_search_engine.yaml.
4. Try to access BackOffice.
Result:
TypeError: Argument 1 passed to Ibexa\Platform\ElasticSearchEngine\ElasticSearch\Client\Config\SSLCert::__construct() must be of the type string, null given, called in [...]/ezplatform-elasticsearch-search-engine/src/lib/ElasticSearch/Client/Config/SSLCert.php on line 39
Expected result:
InvalidConfigurationException: The path "ez_platform_elastic_search_engine.connections.default.ssl.cert.path" cannot contain an empty value, but got null.
Note:
cert_key param can be completely deleted from .yaml config which solves this issue.