Skip to content

Conversation

freshtonic
Copy link
Contributor

ProtectJS was generating null search terms and EQL was only checking for the presence of an index key, which would then end up checking if two JSONB null values were equal, which would always return true.

This commit changes checks of the form:

val ? '<index-key>'

to

val ->> '<index-key>' IS NOT NULL

ProtectJS was generating null search terms and EQL was only checking for
the presence of an index *key*, which would then end up checking if two
JSONB null values were equal, which would always return true.

This commit changes checks of the form:

```
val ? '<index-key>'
```

to

```
val ->> '<index-key>' IS NOT NULL
```
@calvinbrewer calvinbrewer merged commit f8257f2 into main Jul 29, 2025
4 checks passed
@calvinbrewer calvinbrewer deleted the fix/check-encrypted-search-terms-are-not-null branch July 29, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants