This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  beb22e3a9f9c32a18b78e76d91e1ff6e7babdd7e (commit)
      from  85394b1c1bc26b2eb97e6a9116eb3530a1fe71d6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=beb22e3a9f9c32a18b78e76d91e1ff6e7babdd7e

commit beb22e3a9f9c32a18b78e76d91e1ff6e7babdd7e
Author: Franck Villaume <[email protected]>
Date:   Thu Mar 24 21:54:21 2016 +0100

    docman: webdav, add missing dummy LOCK & UNLOCK functions. Fix PROPFIND for 
main folder

diff --git a/src/common/docman/include/webdav.php 
b/src/common/docman/include/webdav.php
index 8ce9387..2d26f2c 100644
--- a/src/common/docman/include/webdav.php
+++ b/src/common/docman/include/webdav.php
@@ -110,7 +110,16 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server 
{
                        if (!$res)
                                return '404';
 
-                       $arr = db_fetch_array($res);
+                       if (db_numrows($res)) {
+                               $arr = db_fetch_array($res);
+                       } else {
+                               //we setup for the specific root / folder which 
does not exist in database
+                               $g = group_get_object($group_id);
+                               $arr = array();
+                               $arr['groupname'] = '/';
+                               $arr['createdate'] = $g->getStartDate();
+                               $arr['updatedate'] = 0;
+                       }
                        if ($arr['updatedate']) {
                                $lastmodifieddate = $arr['updatedate'];
                        } else {
@@ -540,6 +549,14 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server 
{
                return '403';
        }
 
+       function LOCK(&$options) {
+               return true;
+       }
+
+       function UNLOCK(&$options) {
+               return true;
+       }
+
        /**
         * findDgID - get the ID of the document group where we are
         *

-----------------------------------------------------------------------

Summary of changes:
 src/common/docman/include/webdav.php | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to