Skip to content

Escaped Commas cannot be used in a filter string #444

Closed
@mary-gao

Description

@mary-gao

Description

It's not possible right now to search for items using a comma in the filter string. So, when I GET

/entities?filter[name]=like:%2C

I don't get the entries that I expect (all the entities with a name that contains a comma).

It looks like this is because we split the filter string on the comma after it has already been decoded, so we do not distinguish between "?filter[name]=a%2Cc" and "?filter[name]=a,c".

Environment

  • JsonApiDotNetCore Version: 2.4.0

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