Skip to content

ExpandWildcards serialized with incorrect casing in Elastic.Clients.Elasticsearch 8.19.0-preview.1 #8545

Closed
@Ramstad

Description

@Ramstad

Elastic.Clients.Elasticsearch version: 8.19.0-preview.1

Elasticsearch version: 8.18.1

.NET runtime version: net9.0

Operating system version: Windows for client, docker for elasticsearch

Description of the problem including expected versus actual behavior:
After downgrading from client version 9 to 8.19.0-preview, I get an error when deleting indexes with wildcard.
Request done like this:

client.Indices.DeleteAsync<DeleteResponse>("my_index_prefix*", descriptor =>
            {
                descriptor.ExpandWildcards(ExpandWildcard.All);
            }, TestContext.Current.CancellationToken);

I get this error:

Invalid Elasticsearch response built from a unsuccessful (400) low level call on DELETE: /my_index_prefix*?expand_wildcards=All
 Exception: Request failed to execute. Call: Status code 400 from: DELETE /my_index_prefix*?expand_wildcards=All. ServerError: Type: illegal_argument_exception Reason: "No valid expand wildcard value [All]"

The only difference I can see from version 9 to 8.19.0-preview is the casing of the all/All value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions