Skip to content

fix array sort values in GetSortBsonVisitor#2220

Merged
thjaeckle merged 1 commit intoeclipse-ditto:masterfrom
beyonnex-io:fix-array-sorting
Sep 9, 2025
Merged

fix array sort values in GetSortBsonVisitor#2220
thjaeckle merged 1 commit intoeclipse-ditto:masterfrom
beyonnex-io:fix-array-sorting

Conversation

@hu-ahmed
Copy link
Contributor

@hu-ahmed hu-ahmed commented Sep 8, 2025

Sorting on array fields caused a JsonParseException because GetSortBsonVisitor#toJsonValue did not handle array values correctly.

Fix

Added support in toJsonValue for converting Java collections into proper JsonArray instead of treating them as plain JSON strings.

Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot for the fix @hu-ahmed

@thjaeckle thjaeckle added this to the 3.8.0 milestone Sep 9, 2025
@thjaeckle thjaeckle added the bug label Sep 9, 2025
@thjaeckle thjaeckle merged commit 7ad8dd9 into eclipse-ditto:master Sep 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants