Skip to content

MONGOCRYPT-903 Case and diacritic sensitivity not honoured for explicit encryption#1158

Merged
mdb-ad merged 9 commits intomongodb:masterfrom
mdb-ad:case-fix-2
May 6, 2026
Merged

MONGOCRYPT-903 Case and diacritic sensitivity not honoured for explicit encryption#1158
mdb-ad merged 9 commits intomongodb:masterfrom
mdb-ad:case-fix-2

Conversation

@mdb-ad
Copy link
Copy Markdown
Contributor

@mdb-ad mdb-ad commented May 5, 2026

The initial interpretation of the casef and diacf server fields was backwards.

@mdb-ad mdb-ad requested a review from a team as a code owner May 5, 2026 00:27
@mdb-ad mdb-ad requested a review from connorsmacd May 5, 2026 00:27
@kevinAlbs kevinAlbs changed the title DRIVERS-3470 Case and diacritic sensitivity not honoured for explicit encryption MONGOCRYPT-903 Case and diacritic sensitivity not honoured for explicit encryption May 5, 2026
Comment thread test/test-mc-textopts.c
Copy link
Copy Markdown
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also update the textopts.json used by the Python bindings tests to fix failing test-python tasks.

I can reproduce the failed test locally by building without ASan:

cmake -S. -Bcmake-build
cmake --build cmake-build --target mongocrypt

Then running:

export PYMONGOCRYPT_LIB=$(pwd)/cmake-build/libmongocrypt.dylib
pushd bindings/python
python -m pytest -v --ignore=test/performance .
popd

@mdb-ad mdb-ad requested a review from a team as a code owner May 6, 2026 16:58
@mdb-ad mdb-ad requested a review from NoahStapp May 6, 2026 16:58
Copy link
Copy Markdown
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with an added comment noting "f" means "folding".

Comment thread src/mc-textopts.c
@kevinAlbs kevinAlbs requested review from NoahStapp and removed request for NoahStapp and connorsmacd May 6, 2026 17:46
mdb-ad and others added 2 commits May 6, 2026 11:41
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
@mdb-ad mdb-ad merged commit d64db0a into mongodb:master May 6, 2026
2 of 3 checks passed
kevinAlbs pushed a commit that referenced this pull request May 6, 2026
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