You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug of DRF, it is a Python standardlib bug python/cpython#125651, the fact that you can provide an underscore to UUID constructor means that it is accepting invalid values.
The issue
When the serializer receives a UUID that we might think is invalid, it gets "cleaned" up and considered valid, returning a completely different UUID.
How to replicate
A simple way to replicate is to actually use the uuid package:
Note the differences 524e802_061a and 0524e802-061a
The text was updated successfully, but these errors were encountered: