Opened 3 years ago

Closed 3 years ago

#33164 closed New feature (wontfix)

UUID URL converter should support uppercase hexadecimal digits

Reported by: Renato Alencar Owned by: nobody
Component: Core (URLs) Version: dev
Severity: Normal Keywords: uuid, url
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Renato Alencar)

According to the RFC4122 A Universally Unique IDentifier (UUID) URN Namespace, the formal definition of an UUID string includes hexadecimal digits in uppercase. But the current implementation of the UUID URL converter only supports lowercase digits (from a to f).

Related PR: https://github.com/django/django/pull/14928

Change History (2)

comment:1 by Renato Alencar, 3 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 3 years ago

Resolution: wontfix
Status: newclosed
Type: BugNew feature

Thanks for this ticket, however this is a document and intended behavior which prevents multiple URLs from mapping to the same page:

uuid - Matches a formatted UUID. To prevent multiple URLs from mapping to the same page, dashes must be included and letters must be lowercase. For example, 075194d3-6885-417e-a8a8-6c931e272f00. Returns a UUID instance.

See #28883 for a related discussion.

Note: See TracTickets for help on using tickets.
Back to Top