[z3-five] SVN: Products.Five/branches/1.4/ Backported the traversal order changes from zope 2.10
Alec Mitchell
apm13 at columbia.edu
Wed Jul 26 17:54:02 CEST 2006
On 7/25/06, yuppie <y.2006_ at wcm-solutions.de> wrote:
> Hi!
>
>
> Alec Mitchell wrote:
> > Log message for revision 69121:
> > Backported the traversal order changes from zope 2.10
>
> There's a bug in that change. HEAD requests (and I guess also other
> FTP/WebDAV requests) trigger this error:
>
> ERROR Zope.SiteErrorLog http://www.example.org/mySite/virtual_hosting//
> Traceback (innermost last):
> Module ZPublisher.Publish, line 106, in publish
> Module ZPublisher.BaseRequest, line 325, in traverse
> Module webdav.NullResource, line 66, in __bobo_traverse__
> NotFound: The requested resource was not found.
>
> The VirtualHostMonster adds 'virtual_hosting//' to the URL (don't ask me
> why). 'virtual_hosting' has to be acquired, but now a NullResource is
> created instead.
Hm, this is a bit puzzling. The code should use acquisition if
there's no available view and if the attribute is not available via
item lookup. Perhaps the context[attr] lookup is returning a
NullResource? If this is the case, doesn't the same problem exist in
Zope 2.10? Is this true for any HEAD request that includes an
acquired attribute, or just those that go through the VHM?
Thanks,
Alec
More information about the z3-five
mailing list