Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#31490 closed Uncategorized (needsinfo)

Increase length of contrib.sites domain field

Reported by: thenewguy Owned by: nobody
Component: contrib.sites Version: 3.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The domain value is currently limited to 100 characters. This seems like an arbitrary limit. Apps served via cloud providers like AWS can approach this limit pretty easily when accessed via their public path -> for example I just checked a few apps available through AWS load balancers and their FQDN was around 90 characters.

It isn't unfeasible for deeply nested domains to hit this limit either. Since many apps rely on the site record, these sites are dangerously close to not working with Django.

It would be helpful here to increase the size to the max portable length of a charfield at 255 characters.

Change History (1)

comment:1 by Carlton Gibson, 4 years ago

Resolution: needsinfo
Status: newclosed

Hi.

I'm not entirely convinced here.

  • Seems like even the most horrible names leave some headroom by your report. Is it even necessary?
  • Surely most folks use DNS? What's the % of folks using such names as site records? Not sure we need to impose a change on everyone for that. A migration isn't zero cost.
  • Why 255? That seems a LOT of extra headroom, given that we're not hitting the limit already, and in other cases we favored "human values" over values such as 255. (These days, is 255 even the right "machine value" for the supported DBs?)

It's the kind of change that needs consensus on the DevelopersMailingList.

Last edited 4 years ago by Carlton Gibson (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top