-
Łukasz Nowak authored
from https://bugs.launchpad.net/zope2/+bug/699865 : VirtualHostMonster does not work with IPv6 named hosts. In case of such rewrite configuration: RewriteRule (.*) http://10.0.243.129:9280/VirtualHostBase/https/[%{SERVER_ADDR}]:4080$1 [L,P] When SERVER_ADDR is fd00::74ba VirtualHostMonster dies with: Traceback (most recent call last): File "/eggs/Zope2-2.12.14-py2.6-linux-x86_64.egg/ZPublisher/BeforeTraverse.py", line 145, in __call__ meth(*(container, request, None)[:args]) File "/eggs/Zope2-2.12.14-py2.6-linux-x86_64.egg/Products/SiteAccess/VirtualHostMonster.py", line 154, in __call__ host, port = host.split(':') ValueError: too many values to unpack This is because IPv6 addresses contain ":" in them. -- This is backport of https://github.com/zopefoundation/Zope/pull/314 to 2.13 branch This also include part of: 2e9d01ea - flake8 Products/Shared/ZTUtils. removing test_suite function from the test
338f6d07