[Zope-CMF] WebDAV editing inside CMF site (Error: 302 Moved
Temporarily)
Tres Seaver
tseaver@palladion.com
Fri, 3 Aug 2001 08:44:31 -0400 (EDT)
On 3 Aug 2001, Ole Aamot wrote:
> Hi.
>
> I am building a portal based on Zope 2.3.3 and CMF 1.1 from Debian
> GNU/Linux 'woody' and would like to offer editing through WebDAV
> to privileged users, reviewers and managers.
>
> So far I've had no success with uploading or editing a DTML doc to
> the CMF site folder using cadaver 0.17.
>
> Any hints?
>
> oka@perceptron:~$ cadaver localhost:9673/portalab
> Looking up hostname... Connecting to server... connected.
> Connecting to server... connected.
> dav:/portalab/> ls
> Listing collection `/portalab/': (reconnecting...done) succeeded.
> Coll: Members 0 Aug 1 11:55
> Coll: portal_catalog 0 Aug 1 09:27
> Coll: portal_skins 0 Aug 1 10:12
> Coll: portal_types 0 Aug 1 13:00
> Coll: portal_workflow 0 Aug 1 09:27
> MailHost 0 Aug 1 14:21
> about 555 Aug 2 10:05
> acl_users 0 Aug 1 09:27
> content_type_registry 0 Aug 1 09:27
> cookie_authentication 0 Aug 1 09:27
> invitation 4610 Aug 1 14:04
> portal_actions 0 Aug 1 09:27
> portal_discussion 0 Aug 1 09:27
> portal_memberdata 0 Aug 1 09:27
> portal_membership 0 Aug 1 09:27
> portal_metadata 0 Aug 1 09:27
> portal_properties 0 Aug 1 09:27
> portal_registration 0 Aug 1 09:27
> portal_syndication 0 Aug 1 09:27
> portal_undo 0 Aug 1 09:27
> portal_url 0 Aug 1 09:27
> dav:/portalab/> edit invitation
> Connecting to server... connected.
> Downloading `/portalab/invitation' to /tmp/cadaver-edit-vYgMuv
> Progress: [=============================>] 100.0% of 13478 bytes succeeded.
> Running editor: `emacs /tmp/cadaver-edit-vYgMuv'...
> Changes were made.
> Uploading changes to `/portalab/invitation'
> Progress: [=============================>] 100.0% of 13478 bytes failed:
> 302 Moved Temporarily
> Try uploading again (y/n)?
>
> The Security permissions for 'invitation' for Modify portal content
> aren't set. Can I recursively set permissions for the entire site?
The CookieCrumbler's "eager redirect" is the culprit here. If
you clear the "Auto login form" property in the 'cookie_authentication'
object, then cadaver will trigger normal HTTP Basic Auth, and will
therefore prompt for userid / password.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com