Fw: [Zope-CMF] WebDAV

Martijn Pieters mj@zope.com
Thu, 16 Aug 2001 13:56:36 -0400


Hmm.. seems Shane's news gateway isn't forwarding things back out again.

> "seb bacon" <seb@jamkit.com> wrote in message
> news:20010816151943.A23190@lenin.jamkit.com...
> > > Does anybody  uses WebDAV together with CMF?  My clients (Cadaver and
> Amaya)
> > > do not manage to handle the redirection to the login screen.
> > >
> > > Or mayby, how do I instruct CMF to use basic authentication on the
> WebDAV
> > > port?
> >
> > The ZC folks suggest removing the CookieCrumbler, which is a bit
> > 'suboptimal' IMO.  The problem is, there's no real way of knowing if a
> > client is webDAV or HTTP.  Most nix clients use the neon libs, and
> > they say so in their user agent string, but you can't be sure they'll
> > continue to do so, since it's not part of the spec.  I hacked together
> > a version of CookieCrumbler which kind of works.  However, this
> > approach is bound to end in tears...
> >
> > The other possibility, now that the WebDAV src port is officially
> > defined, is just to turn off CookieCrumbling on that port.  Come to
> > think of it, surely that's the best way.  However, it's not been done
> > yet, to my knowledge.
>
> There are in my view two options to handle this:
>
> - Add a UI widget to the CookieCrumble interface to select ports on which
it
> will interfere and do the redirect (or select ports on which it will *not*
> redirect). A simple textbox would do.
>
>   This is not so flexible however, you cannot easily change ports on your
> Zope server when it is hardcoded like this.
>
> - Extend the WebDAV source handler to add a 'environment variable' to the
> REQUEST to flag the fact we are handling a WebDAV source port request.
Right
> now the handler touches the environment variables already, to munge the
> requested method so you'll get the document source.
>
>   The Cookie Crumbler can then detect the variable and not redirect to the
> login form, thus allowing basic authentication to work.
>
> --
> Martijn Pieters
> | Software Engineer  mailto:mj@zope.com
> | Zope Corporation   http://www.zope.com/
> | Creators of Zope   http://www.zope.org/
> ---------------------------------------------
>
>