Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty dynamic date formats list #1919

Conversation

7ochem
Copy link
Contributor

@7ochem 7ochem commented Aug 4, 2023

If the dynamic_date_formats is an empty list
this will produce a Elastica\Exception\ResponseException saying:

class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')

Screenshot-from-2023-08-04-13-35-54

  • friendsofsymfony/elastica-bundle v6.3.1
  • ruflin/elastica 7.3.1
  • Elasticsearch 6.8.22
  • symfony/console v4.4.49

If the `dynamic_date_formats` is an empty list
this will produce a `Elastica\Exception\ResponseException` saying:

> class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')
@7ochem
Copy link
Contributor Author

7ochem commented Aug 4, 2023

Ok, so this happens with Elasticsearch 6, I need to use Elasticsearch 7 when using friendsofsymfony/elastica-bundle v6... When I use Elasticsearch v7 it's all fine. Closing...

@7ochem 7ochem closed this Aug 4, 2023
@7ochem 7ochem deleted the fix-empty-dynamic-date-formats-list branch August 4, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant