The handling of string and non-string arguments in
HTTPRequest.setVirtualRoot() is indeed inconsistent, but it's obviously
possible to fix the double-root-slash problem by changing the way
VirtualHostMonster calls that method.
Actually, the difference in VirtualHostMonster.__call__ between both
I tried out version 1.6 of:
http://cvs.zope.org/Zope/lib/python/Products/SiteAccess/VirtualHostMonster.py
dated 2002/02/15 21:20:33
It works!!
I got the correct:
http://example.org/zopeRoot/p_/ZopeButton
link on the page when I pointed my browser at:
http://localhost:8080/VirtualHostBase/http/ex
am I reading this right -- 2.5 is brooken?
- Original Message -
From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]>
To: "Zope Developers list" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 10:57 AM
Subject: Re: [Zope-dev] Re: bug in VirtualHostMons
On Thu, 2002-02-21 at 11:01, Adam Manock wrote:
> I can confirm that throwing this at a Zope 2.5.0 root VirtualHostMonster:
>
>
>http://localhost:8080/VirtualHostBase/http/example.org:80/VirtualHostRoot/_vh_zopeRoot/
>
> provides a page with this link:
>
> http://example.org//zopeRoot/p_/ZopeB
On Thu, 2002-02-21 at 13:38, Chris Withers wrote:
> Collector it then :-)
As I mentioned in my first e-mail, it's 'collected' already :-), with
proposed fix and everything:
http://collector.zope.org/Zope/235
--
Ideas don't stay in some minds very long because they don't like
solitary confineme
Collector it then :-)
cheers,
Chris
- Original Message -
From: "Adam Manock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 2:01 PM
Subject: Re: [Zope-dev] Re: bug in VirtualHostMonster in 2.5.0
> I can confirm that throwing
I can confirm that throwing this at a Zope 2.5.0 root VirtualHostMonster:
http://localhost:8080/VirtualHostBase/http/example.org:80/VirtualHostRoot/_vh_zopeRoot/
provides a page with this link:
http://example.org//zopeRoot/p_/ZopeButton
and on 2.4.4 you get:
http://example.org/zopeRoot/p_/Zop
What info can you get from , say in a dtml doc called
"env_test" ??
eg:
ServerName newsite
ProxyPass /
http://192.168.X.Y:8080/VirtualHostBase/http/newsite:80/newsite/VirtualHostRoot/
ProxyPassReverse /
http://192.168.X.Y:8080/VirtualHostBase/http/newsite:80/newsite/VirtualHostRoot/
ProxyPass
Ok, I think I found a fix for it, but it's not a change in VHM.
As I mentioned in a follow-up to Zope bug 235, there is an inconsistency
in lib/python/ZPublisher/HTTPRequest.py in HTTPRequest.setVirtualRoot()
The attached patch (also in the bug report) explains what this
inconsistency is and see