Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Uid] isValid fails when passing non Rfc4122 IDs #57398

Closed
@KDederichs

Description

@KDederichs

Symfony version(s) affected

7.1.1

Description

When trying to validate UUIDs in a format that's not Rfc4122 it'll always fail.

How to reproduce

Uuid::isValid("1CCD2w4mK2m455S2BAXFht"); //should be true since it's a valid UUIDv7 in base58 format.

Possible Solution

The isValid seems to contain a regex that checks for the Rfc4122 structure, probably should be expanded to check the other representations as well.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions