Branch: Tag:

2004-05-06

2004-05-06 18:25:28 by Martin Stjernholm <mast@lysator.liu.se>

Fix for changed DAVLock.owner format.

Rev: server/modules/misc/webdav.pike:1.19

1:   // Protocol support for RFC 2518   // - // $Id: webdav.pike,v 1.18 2004/05/06 15:23:58 grubba Exp $ + // $Id: webdav.pike,v 1.19 2004/05/06 18:25:28 mast Exp $   //   // 2003-09-17 Henrik Grubbström   
9:   #include <module.h>   #include <request_trace.h>    - constant cvs_version = "$Id: webdav.pike,v 1.18 2004/05/06 15:23:58 grubba Exp $"; + constant cvs_version = "$Id: webdav.pike,v 1.19 2004/05/06 18:25:28 mast Exp $";   constant thread_safe = 1;   constant module_name = "DAV: Protocol support";   constant module_type = MODULE_FIRST;
224:    return Roxen.http_status(422, "Missing DAV:write.");    }    string locktype = "DAV:write"; -  Node owner_node = lock_info_node->get_first_element("DAV:owner", 1); +     -  +  array(Node) owner; +  if (Node owner_node = lock_info_node->get_first_element("DAV:owner", 1)) +  owner = owner_node->get_children(); +     // Parameters OK, try to create a lock.       TRACE_ENTER(sprintf("LOCK: Creating a %s%s lock on %O.",
236:    depth != 0,    lockscope,    "DAV:write", -  owner_node->render_xml(), +  owner,    id);    if (mappingp(new_lock)) {    // Error