Skip to content

Indicies.Get call fails to deserialize ICollections properly in the IndexRequest #8034

Closed
elastic/elastic-transport-net
#108
@baveryt

Description

@baveryt

Elastic.Clients.Elasticsearch version: 8.11

Elasticsearch version: 8.8

.NET runtime version: 8.0

Operating system version: Osx

Description of the problem including expected versus actual behavior:
When making calls to Indicies.Get and setting the Features or ExpandWildcards on the GetIndexRequest object the ICollections are not getting parsed properly for the underlying API call. Looking at the stack trace you'll see something like: Invalid Elasticsearch response built from a unsuccessful (400) low level call on GET: /%2A?features=System.Collections.ObjectModel.Collection%601%5BElastic.Clients.Elasticsearch.IndexManagement.Feature%5D\n

Steps to reproduce:

  1. Make a call to the Indicies.Get setting either the features or expandwildcards option

Expected behavior
For the features it should expand out the collections properly [aliases] in this case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions