This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Cédric Cabessa
Recipients Cédric Cabessa
Date 2019-04-30.09:19:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556615988.91.0.308330120393.issue36757@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-04-30 09:19:48Cédric Cabessasetrecipients: + Cédric Cabessa
2019-04-30 09:19:48Cédric Cabessasetmessageid: <1556615988.91.0.308330120393.issue36757@roundup.psfhosted.org>
2019-04-30 09:19:48Cédric Cabessalinkissue36757 messages
2019-04-30 09:19:48Cédric Cabessacreate