Opened 15 years ago
Closed 15 years ago
#12054 closed (wontfix)
Comments: Data truncated for column 'ip_address' when using IPv6
Reported by: | Kenneth Falck | Owned by: | nobody |
---|---|---|---|
Component: | contrib.comments | Version: | 1.1 |
Severity: | Keywords: | comments ipv6 address | |
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 contrib.comments system creates the django_comments.ip_address field as a char(15), which doesn't fit an IPv6 REMOTE_ADDR. Entering a comment causes the MySQL error "Data truncated for column 'ip_address'."
I believe IPv6 needs at least 39 characters to store any IP address. After manually modifying the field length in MySQL, the comment system works again.
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing wontfix because it isn't really a problem with Comments - it's a problem with IPAddressField, and support for a IPv6 address field is covered by #811.
Django's
IPAddressField
, at the present moment, only supports IPv4.