Skip to content

fix: handle unpaired UTF-16 surrogates in SmartSerializer#403

Merged
shyim merged 3 commits into
opensearch-project:mainfrom
k-anz:fix-smartserializer-jsonexception
May 8, 2026
Merged

fix: handle unpaired UTF-16 surrogates in SmartSerializer#403
shyim merged 3 commits into
opensearch-project:mainfrom
k-anz:fix-smartserializer-jsonexception

Conversation

@k-anz
Copy link
Copy Markdown
Contributor

@k-anz k-anz commented Apr 29, 2026

Description

Fixes #402

Implements the same fix as elastic/elasticsearch-php#1179

Issues Resolved

#402

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Kyoko OZAKI <kanz.anz10@gmail.com>
Signed-off-by: Kyoko OZAKI <kanz.anz10@gmail.com>
@k-anz k-anz force-pushed the fix-smartserializer-jsonexception branch from 929b8f7 to 2b8dcec Compare April 29, 2026 14:36
shyim
shyim previously approved these changes Apr 29, 2026
Copy link
Copy Markdown
Collaborator

@shyim shyim left a comment

Choose a reason for hiding this comment

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

fine for me as elastic client did the same

Comment thread src/OpenSearch/Serializers/SmartSerializer.php Outdated
Signed-off-by: Kyoko OZAKI <kanz.anz10@gmail.com>
@shyim shyim merged commit c340e41 into opensearch-project:main May 8, 2026
32 checks passed
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.

[BUG] JsonException in SmartSerializer: Single unpaired UTF-16 surrogate in unicode escape

3 participants