Skip to content

UUID generator doesn't work with binary UUID types #2149

Open
@alcaeus

Description

@alcaeus

Bug Report

Q A
BC Break no
Version 2.0.3

Summary

Given an identifier using strategy="uuid" and type="bin_uuid" or type="bin_uuid_rfc4122", an error occurs when trying to store data:

MongoDB\Driver\Exception\InvalidArgumentException : Expected UUID length to be 16 bytes, 32 given

Expected behavior

The UUID generator should be able to generate UUIDs for consumption with the binary BSON types for UUIDs.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions