Author: ts
Date: Sat Oct 13 10:48:29 2007
New Revision: 6452

Log:
- Made simple backend return full WebDAV version string.
# Litmus expects it, so we should send it, I think.

Modified:
    trunk/Webdav/src/backends/simple.php
    trunk/Webdav/tests/clients/cadaver/001_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/litmus/003_basic__2_options/response/headers.php
    trunk/Webdav/tests/clients/nautilus/004_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/007_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/032_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/034_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/048_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/079_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/090_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/098_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/100_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/103_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/105_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/107_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/138_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/140_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/143_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/145_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/178_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/181_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/183_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/185_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/215_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/222_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/227_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/nautilus/229_OPTIONS/response/headers.php
    trunk/Webdav/tests/clients/rfc/options/response/headers.php

Modified: trunk/Webdav/src/backends/simple.php
==============================================================================
--- trunk/Webdav/src/backends/simple.php [iso-8859-1] (original)
+++ trunk/Webdav/src/backends/simple.php [iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1044,7 +1044,7 @@
     public function options( ezcWebdavOptionsRequest $request )
     {
         // @TODO: Read this from implemented interfaces / features in base 
class.
-        $res = new ezcWebdavOptionsResponse( '1, 2' );
+        $res = new ezcWebdavOptionsResponse( '1, 2, 1#extended' );
         $res->setHeader( 'Allow', 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, 
DELETE, COPY, MOVE, MKCOL, PUT' );
         return $res;
     }

Modified: trunk/Webdav/tests/clients/cadaver/001_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/cadaver/001_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/cadaver/001_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: 
trunk/Webdav/tests/clients/litmus/003_basic__2_options/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/litmus/003_basic__2_options/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/litmus/003_basic__2_options/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/004_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/004_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/004_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/007_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/007_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/007_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/032_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/032_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/032_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/034_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/034_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/034_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/048_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/048_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/048_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/079_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/079_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/079_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/090_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/090_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/090_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/098_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/098_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/098_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/100_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/100_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/100_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/103_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/103_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/103_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/105_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/105_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/105_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/107_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/107_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/107_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/138_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/138_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/138_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/140_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/140_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/140_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/143_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/143_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/143_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/145_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/145_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/145_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/178_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/178_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/178_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/181_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/181_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/181_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/183_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/183_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/183_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/185_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/185_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/185_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/215_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/215_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/215_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/222_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/222_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/222_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/227_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/227_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/227_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/nautilus/229_OPTIONS/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/nautilus/229_OPTIONS/response/headers.php 
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/nautilus/229_OPTIONS/response/headers.php 
[iso-8859-1] Sat Oct 13 10:48:29 2007
@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'DAV' => '1, 2',
+  'DAV' => '1, 2, 1#extended',
   'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 

Modified: trunk/Webdav/tests/clients/rfc/options/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/rfc/options/response/headers.php [iso-8859-1] 
(original)
+++ trunk/Webdav/tests/clients/rfc/options/response/headers.php [iso-8859-1] 
Sat Oct 13 10:48:29 2007
@@ -2,8 +2,8 @@
 
 return array (
     // Once...
-    // 'DAV:' => '1, 2, 1#extended'
-    'DAV'   => '1, 2',
+    // 'DAV:' => '1, 2, 1#extended, 1#extended'
+    'DAV'   => '1, 2, 1#extended',
     'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, 
MKCOL, PUT',
 );
 


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to