REQUEST_METHOD 'LOCK' 'LOCK'
When downloading a word off a zope server using IE, the REQUEST object shows the REQUEST_METHOD as 'LOCK'. Does anyone know what this means? I get a network login prompt in windows when I try download this file. I can just cancel through it, and I get the file fine. Is the REQUEST_METHOD set to 'LOCK' related? How/where would the REQUEST_METHOD be set when downloading a file Thanks, Mark
Mark Gibson wrote:
When downloading a word off a zope server using IE, the REQUEST object shows the REQUEST_METHOD as 'LOCK'. Does anyone know what this means?
it means it's being accessed via WebDAV and Zope is locking the object on Word's behalf.
I get a network login prompt in windows when I try download this file. I can just cancel through it, and I get the file fine. Is the REQUEST_METHOD set to 'LOCK' related? How/where would the REQUEST_METHOD be set when downloading a file
Yeah, LOCK'ing files isn't allowed by to anonymous default, but getting them is. Zope stupidly sets MS-Author-via-dav headers all over the place, which means M$ apps try to open the files for editing (and lock them in the process). This has been discussed on the list. The general concensus is that these headers suck and shouldn't be going out on anything but the WebDAV SourcePort (and even on that point opinion is divided ;-) but no-one has had time (or motivation - pay me and I'll do it ;-) to fix this. In the meantime, just brutally hack out any references to 'ms-author-via' in the .py files in the /webdav folder and your life will be better for it. cheers, Chris
This is a known Zope bug caused by ZServer passing an MS-Author-Via: DAV header in the HTTP REQUEST which makes Work think you want to edit the file. Word then sends a WebDAV lock request to Zope, which an anonymous user is not authorized to do. So Word receives a 401 error and prompts you to authenticate. As a workaround, try commenting out line 64 of {Zope}/lib/python/webdav/Resource.py. I intend to fix this bug when I get the time in a configurable way. hth, -Casey On Tuesday 24 September 2002 08:21 pm, Mark Gibson wrote:
When downloading a word off a zope server using IE, the REQUEST object shows the REQUEST_METHOD as 'LOCK'. Does anyone know what this means?
I get a network login prompt in windows when I try download this file. I can just cancel through it, and I get the file fine. Is the REQUEST_METHOD set to 'LOCK' related? How/where would the REQUEST_METHOD be set when downloading a file
Thanks,
Mark
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
It worked! Thanks to Casey and Chris W. for your help. Mark Casey Duncan wrote:
This is a known Zope bug caused by ZServer passing an MS-Author-Via: DAV header in the HTTP REQUEST which makes Work think you want to edit the file.
Word then sends a WebDAV lock request to Zope, which an anonymous user is not authorized to do. So Word receives a 401 error and prompts you to authenticate.
As a workaround, try commenting out line 64 of {Zope}/lib/python/webdav/Resource.py. I intend to fix this bug when I get the time in a configurable way.
hth,
-Casey
On Tuesday 24 September 2002 08:21 pm, Mark Gibson wrote:
When downloading a word off a zope server using IE, the REQUEST object shows the REQUEST_METHOD as 'LOCK'. Does anyone know what this means?
I get a network login prompt in windows when I try download this file. I can just cancel through it, and I get the file fine. Is the REQUEST_METHOD set to 'LOCK' related? How/where would the REQUEST_METHOD be set when downloading a file
Thanks,
Mark
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Casey Duncan -
Chris Withers -
Mark Gibson -
Mark Gibson