WebDAV PUT factory tests failing on 2.10 branch
Those two tests are currently failing on the 2.10 branch (updated with the Zope 3.3.0rc1 code). Any hints? Andreas --------------- Error in test testSubfolderInsideOutVirtualHosting (webdav.tests.testPUT_factory.TestPUTFactory) Traceback (most recent call last): File "/opt/python-2.4.3/lib/python2.4/unittest.py", line 260, in run testMethod() File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/tests/testPUT_factory.py", line 66, in testSubfolderInsideOutVirtualHosting put = request.traverse('/VirtualHostBase/http/foo.com:80/folder/VirtualHostRoot/_vh_foo/doc') File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 463, in traverse subobject = self.traverseName(object, entry_name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 318, in traverseName ob2 = adapter.publishTraverse(self, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 77, in publishTraverse subobject=object.__bobo_traverse__(request, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/NullResource.py", line 67, in __bobo_traverse__ raise Conflict, 'Collection ancestors must already exist.' Conflict: Collection ancestors must already exist. . Error in test testSubfolderVirtualHosting (webdav.tests.testPUT_factory.TestPUTFactory) Traceback (most recent call last): File "/opt/python-2.4.3/lib/python2.4/unittest.py", line 260, in run testMethod() File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/tests/testPUT_factory.py", line 54, in testSubfolderVirtualHosting put = request.traverse('/VirtualHostBase/http/foo.com:80/folder/VirtualHostRoot/doc') File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 463, in traverse subobject = self.traverseName(object, entry_name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 318, in traverseName ob2 = adapter.publishTraverse(self, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 77, in publishTraverse subobject=object.__bobo_traverse__(request, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/NullResource.py", line 67, in __bobo_traverse__ raise Conflict, 'Collection ancestors must already exist.' Conflict: Collection ancestors must already exist.
AFAIK, Stefan Hollek checked it in to demonstrate an incompatibility of Zope 2.10 vs. 2.9. See http://www.zope.org/Collectors/Zope/2187. Andreas Jung wrote:
Those two tests are currently failing on the 2.10 branch (updated with the Zope 3.3.0rc1 code). Any hints?
Andreas
---------------
Error in test testSubfolderInsideOutVirtualHosting (webdav.tests.testPUT_factory.TestPUTFactory) Traceback (most recent call last): File "/opt/python-2.4.3/lib/python2.4/unittest.py", line 260, in run testMethod() File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/tests/testPUT_factory.py", line 66, in testSubfolderInsideOutVirtualHosting put = request.traverse('/VirtualHostBase/http/foo.com:80/folder/VirtualHostRoot/_vh_foo/doc')
File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 463, in traverse subobject = self.traverseName(object, entry_name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 318, in traverseName ob2 = adapter.publishTraverse(self, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 77, in publishTraverse subobject=object.__bobo_traverse__(request, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/NullResource.py", line 67, in __bobo_traverse__ raise Conflict, 'Collection ancestors must already exist.' Conflict: Collection ancestors must already exist.
.
Error in test testSubfolderVirtualHosting (webdav.tests.testPUT_factory.TestPUTFactory) Traceback (most recent call last): File "/opt/python-2.4.3/lib/python2.4/unittest.py", line 260, in run testMethod() File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/tests/testPUT_factory.py", line 54, in testSubfolderVirtualHosting put = request.traverse('/VirtualHostBase/http/foo.com:80/folder/VirtualHostRoot/doc')
File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 463, in traverse subobject = self.traverseName(object, entry_name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 318, in traverseName ob2 = adapter.publishTraverse(self, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/ZPublisher/BaseRequest.py", line 77, in publishTraverse subobject=object.__bobo_traverse__(request, name) File "/develop/sandboxes/Zope-2.10/Zope/lib/python/webdav/NullResource.py", line 67, in __bobo_traverse__ raise Conflict, 'Collection ancestors must already exist.' Conflict: Collection ancestors must already exist.
------------------------------------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
--On 17. September 2006 12:38:11 +0200 Philipp von Weitershausen <philipp@weitershausen.de> wrote:
AFAIK, Stefan Hollek checked it in to demonstrate an incompatibility of Zope 2.10 vs. 2.9. See http://www.zope.org/Collectors/Zope/2187.
Ahh..I remember. @Stefan: is this a blocker? Any chance to get this fixed? Andreas
Yes, this is a blocker IMO as it breaks FTP for a whole class of virtual hosting scenarios. No, I don't know how to fix, maybe Lennart? Stefan On 17. Sep 2006, at 12:52, Andreas Jung wrote:
--On 17. September 2006 12:38:11 +0200 Philipp von Weitershausen <philipp@weitershausen.de> wrote:
AFAIK, Stefan Hollek checked it in to demonstrate an incompatibility of Zope 2.10 vs. 2.9. See http://www.zope.org/Collectors/Zope/2187.
Ahh..I remember.
@Stefan: is this a blocker? Any chance to get this fixed?
Andreas
-- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams
On 9/18/06, Stefan H. Holek <stefan@epy.co.at> wrote:
Yes, this is a blocker IMO as it breaks FTP for a whole class of virtual hosting scenarios. No, I don't know how to fix, maybe Lennart?
Yeah, I think so. It's a mess. Basically, 2.10 looks for subobjects using __getitem__ before it looks up aqcuired attributes, and 2.9 reverses that. I should be able to fix this withing the neareast couple of days, I'm pretty close to finishing now, but I gotta go home. :-)
--On 22. September 2006 20:15:01 +0200 Lennart Regebro <regebro@gmail.com> wrote:
On 9/18/06, Stefan H. Holek <stefan@epy.co.at> wrote:
Yes, this is a blocker IMO as it breaks FTP for a whole class of virtual hosting scenarios. No, I don't know how to fix, maybe Lennart?
Yeah, I think so. It's a mess.
Basically, 2.10 looks for subobjects using __getitem__ before it looks up aqcuired attributes, and 2.9 reverses that. I should be able to fix this withing the neareast couple of days, I'm pretty close to finishing now, but I gotta go home. :-)
Thanks for working on that issue! Andras
participants (4)
-
Andreas Jung -
Lennart Regebro -
Philipp von Weitershausen -
Stefan H. Holek