django-postgresql-netfields icon indicating copy to clipboard operation
django-postgresql-netfields copied to clipboard

Database error when receiving IPv6 with scope-id

Open sevdog opened this issue 11 months ago • 7 comments

When receiving an IPv6 there could be a "scope-id" part which is handled and validated by python stdlib.

However the string representation of this kind of value is not valid when used in postgres (see examples in RFC-4007 which raises an error

invalid input syntax for type inet: "fe80::1234%ne0"

Thus the db-prep value should not be the str representation of IPv6 addresses.

sevdog avatar Dec 17 '24 13:12 sevdog