Skip to content

Filter value with leading space gets trimmed resulting in no match #208

Open
@DonavanPrinsTrimble

Description

Version

2.14.2

Details

When I give Gridify a filter value with a leading space the resulting query trims the filter criteria resulting in no matches being found.

Granted I should sanitize my data, but I still believe this to be a bug.

Steps to reproduce

When I give Gridify the filter value: "tags= with leading space", it generates the following query statement:
SELECT VALUE root FROM root JOIN (SELECT VALUE EXISTS(SELECT VALUE m0 FROM root JOIN m0 IN root["tags"] WHERE (m0["name"] = "leading space"))) AS v0 WHERE ((root["tags"] != null) AND v0)

Note that the filter criteria no longer contains the leading space, resulting in no matches returned from my store.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions