Skip to content

fix: decode binary UUID IDs correctly; add CSUUID/JUUID display formats#7

Merged
lazydonkeytim merged 1 commit into
mainfrom
fix/binary-uuid-display
May 11, 2026
Merged

fix: decode binary UUID IDs correctly; add CSUUID/JUUID display formats#7
lazydonkeytim merged 1 commit into
mainfrom
fix/binary-uuid-display

Conversation

@lazydonkeytim

Copy link
Copy Markdown
Collaborator
  • Rewrite binaryToCanonicalUuid to handle both plain EJSON objects and BSON Binary class instances (fixes garbled chars in drawer header)
  • extractIdString now decodes subType 03 as CSUUID instead of falling through to String(binaryInstance)
  • Add formatDocumentId() used in DocumentEditor header, respects the global uuidFormat setting
  • Add 'csuuid' and 'juuid' to UuidFormat; update formatUuid/isBsonUuid
  • Settings menu: CSUUID (.NET / C#), JUUID (Java) display options
  • Server: buildIdCandidates tries subType 03 CSUUID + JUUID byte orders so Update/Delete work for legacy .NET binary IDs
  • matchesId accepts both CSUUID-decoded and standard-order UUID strings for subType 03 Binary values

- Rewrite binaryToCanonicalUuid to handle both plain EJSON objects and
  BSON Binary class instances (fixes garbled chars in drawer header)
- extractIdString now decodes subType 03 as CSUUID instead of falling
  through to String(binaryInstance)
- Add formatDocumentId() used in DocumentEditor header, respects the
  global uuidFormat setting
- Add 'csuuid' and 'juuid' to UuidFormat; update formatUuid/isBsonUuid
- Settings menu: CSUUID (.NET / C#), JUUID (Java) display options
- Server: buildIdCandidates tries subType 03 CSUUID + JUUID byte orders
  so Update/Delete work for legacy .NET binary IDs
- matchesId accepts both CSUUID-decoded and standard-order UUID strings
  for subType 03 Binary values
@lazydonkeytim lazydonkeytim merged commit c48ee3f into main May 11, 2026
1 check 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.

1 participant