Ticket #432 (closed defect: wontfix)

Opened 20 months ago

Last modified 18 months ago

paste.auth.auth_tkt.encode_ip_timestamp breaks on IPv6 clients

Reported by: wRAR Owned by: ianb
Priority: normal Milestone:
Component: paste Version: released-version
Severity: normal Keywords:
Cc:

Description

When AuthTKT wants to issue a cookie with the IP included, it tries to parse v6 IP as if it was v4:

File '/usr/lib/pymodules/python2.6/paste/auth/auth_tkt.py', line 177 in encode_ip_timestamp

ip_chars = .join(map(chr, map(int, ip.split('.'))))

ValueError?: invalid literal for int() with base 10: '2002:4321:bcde::1'

Paste 1.7.4

Change History

Changed 18 months ago by ianb

  • status changed from new to closed
  • resolution set to wontfix

auth_tkt doesn't support ip6 (auth_tkt is defined outside of Paste)

Changed 18 months ago by wRAR

auth_tkt doesn't support ip6

That's bad, but that should be documented and the code should print some useful message instead of an exception.

auth_tkt is defined outside of Paste

What do you mean?

Note: See TracTickets for help on using tickets.