Skip to content

Fix case insensitive derived in queries on String properties. #3554

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

Closed
wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

We now consider the IgnoreCase part of a derived query when used along with In.

repository.findByLastnameIgnoreCaseIn("bEAuFoRd", "maTTheWs")

Closes: #3395

We now consider the IgnoreCase part of a derived query when used along with In. Strings will be quoted to avoid malicious strings from being handed over to the server as a regular expression to evaluate.
@mp911de mp911de added the type: bug A general bug label Feb 18, 2021
@mp911de mp911de added this to the 2.2.14 (Moore SR14) milestone Feb 18, 2021
mp911de pushed a commit that referenced this pull request Feb 18, 2021
We now consider the IgnoreCase part of a derived query when used along with In. Strings will be quoted to avoid malicious strings from being handed over to the server as a regular expression to evaluate.

See #3395
Original pull request: #3554.
mp911de added a commit that referenced this pull request Feb 18, 2021
Reformat code. Add since tags.

See #3395
Original pull request: #3554.
mp911de pushed a commit that referenced this pull request Feb 18, 2021
We now consider the IgnoreCase part of a derived query when used along with In. Strings will be quoted to avoid malicious strings from being handed over to the server as a regular expression to evaluate.

See #3395
Original pull request: #3554.
mp911de added a commit that referenced this pull request Feb 18, 2021
Reformat code. Add since tags.

See #3395
Original pull request: #3554.
mp911de pushed a commit that referenced this pull request Feb 18, 2021
We now consider the IgnoreCase part of a derived query when used along with In. Strings will be quoted to avoid malicious strings from being handed over to the server as a regular expression to evaluate.

See #3395
Original pull request: #3554.
mp911de added a commit that referenced this pull request Feb 18, 2021
Reformat code. Add since tags.

See #3395
Original pull request: #3554.
mp911de pushed a commit that referenced this pull request Feb 18, 2021
We now consider the IgnoreCase part of a derived query when used along with In. Strings will be quoted to avoid malicious strings from being handed over to the server as a regular expression to evaluate.

See #3395
Original pull request: #3554.
mp911de added a commit that referenced this pull request Feb 18, 2021
Reformat code. Add since tags.

See #3395
Original pull request: #3554.
@mp911de
Copy link
Member

mp911de commented Feb 18, 2021

That's merged, polished, and backported now.

@mp911de mp911de closed this Feb 18, 2021
@mp911de mp911de deleted the issue/3395 branch February 18, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Derived findBy…IgnoreCaseIn query doesn't return expected results [DATAMONGO-2540]
2 participants