[Zope] VHM / traverse subpath interaction bug?

Chris Withers chris at simplistix.co.uk
Thu Oct 2 03:13:05 EDT 2008


Hi All,

I've tried this on Zope 2.8-2.11.1 and it behaves the same on all but 
feels like a bug. I wonder if anyone else agrees or, better yet, knows 
what's going on here...

So, add a Script (Python) called test in the root on a Zope instance 
running on port 8080 and in it put:

return repr(traverse_subpath)

Now go to:

http://localhost:8080/test/x/y/z

..you'll get:

['x', 'y', 'z']

...which makes sense.

Now, if you have a VHM called virtual_hosting (as it normally is) if you 
go to:

http://localhost:8080/VirtualHostBase/https/example.com:443/test/VirtualHostRoot/x/y/z

...you'll now get:

['virtual_hosting', '/', 'x', 'y', 'z']

...which doesn't seem right to me.

Worse yet, if you go to:

http://localhost:8080/VirtualHostBase/https/example.com:443/test/VirtualHostRoot/_vh_something/x/y/z

...you get:

['virtual_hosting', '/something', 'x', 'y', 'z']

Anyone got any ideas as to what's going on here?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list