Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3253

Allow nullable 'cert_key' param in elasticsearch config

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bartlomiej.wajda@ibexa.co Bartłomiej Wajda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: