Message341141
UUID constructor accept string with too many dashes or keyword like urn: / uuid:
For eg, this code do not raise
```
>>> import uuid
>>> uuid.UUID('0be--468urn:urn:urn:urn:54-4bf9-41----------d4-9697-41d735uuid:4fbe85uuid:')
UUID('0be46854-4bf9-41d4-9697-41d7354fbe85')
```
For the context, we use a validator based on `uuid.UUID` for an API.
Some customer send string with a UUID followed by extra `-`, the validator let it pass but the sql connector raise an exception
We workaround this in our validator, but UUID constructor should not accept string like the one in exemple |
|
Date |
User |
Action |
Args |
2019-04-30 09:19:48 | Cédric Cabessa | set | recipients:
+ Cédric Cabessa |
2019-04-30 09:19:48 | Cédric Cabessa | set | messageid: <1556615988.91.0.308330120393.issue36757@roundup.psfhosted.org> |
2019-04-30 09:19:48 | Cédric Cabessa | link | issue36757 messages |
2019-04-30 09:19:48 | Cédric Cabessa | create | |
|