Skip to content

OmniPresence webdav client and getETag() #8033

Closed as not planned
Closed as not planned

Description

@ddmckay

Steps to reproduce

  1. Install OmniPresence webdav client on a Mac.
  2. Run initial setup using ownCloud webdav as server.
  3. Watch compatibility test fail with message:

We could not connect to your selected cloud location.
WebDAV server failed conformance test.
Should be able to move a file over an existing file when overwrite is enabled.

Expected behavior

Compatibility tests built into OmniPresence should pass.

For comparison, I tested this ownCloud installation using litmus 0.13 and it passes all tests except propget high-unicode as expected due to running on OS X. (Yes, I know ownCloud on OS X is currently listed in unsupported due to the unicode issue.)

Actual behavior

OmniPresence compatibility test fails.

Server configuration

Operating system:
OS X 10.9.2 Server
Web server:
Apache 2.2.6
Database:
MySQL Ver 14.14 Distrib 5.5.15, for osx10.6 (i386) using readline 5.1
PHP version:
php 5.4.24
ownCloud version: (see ownCloud admin page)
6.0.2
Updated from an older ownCloud or fresh install:
fresh install
List of activated apps:
Activity
Calendar
Contacts
Deleted files
Documents
First Run Wizard
Full Text Search
PDF Viewer
Pictures
Share Files
Text Editor
Updater
Versions
Video Viewer
The content of config/config.php:
(password and salt removed)

<?php
$CONFIG = array (
  'instanceid' => 'oc8def944989',
  'trusted_domains' => 
  array (
    0 => 'cloud.net-kitchen.com',
  ),
  'datadirectory' => '/Volumes/Shared/ownCloud',
  'dbtype' => 'mysql',
  'version' => '6.0.2.2',
  'installed' => true,
  'forcessl' => true,
  'maxZipInputSize' => 0,
  'allowZipDownload' => true,
  'dbname' => 'ownCloud',
  'dbhost' => '127.0.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
);

Are you using external storage, if yes which one: local/smb/sftp/...
No.
Are you using encryption: yes/no
No.

Client configuration

Browser:
NA, using OmniPresence v1.1. See: http://www.omnigroup.com/omnipresence
Operating system:
OS X 10.9.2

Logs

Web server error log

(IP address has been replaced with ???.???.???.???)

[Wed Apr 02 14:54:55 2014] [error] [client ???.???.???.???] PHP Fatal error:  Call to undefined method OC_Connector_Sabre_Directory::getETag() in /Library/Server/Web/Data/Sites/cloud.net-kitchen.com/3rdparty/Sabre/DAV/Locks/Plugin.php on line 504
[Wed Apr 02 14:54:58 2014] [error] [client ???.???.???.???] PHP Fatal error:  Call to undefined method OC_Connector_Sabre_Directory::getETag() in /Library/Server/Web/Data/Sites/cloud.net-kitchen.com/3rdparty/Sabre/DAV/Locks/Plugin.php on line 504

ownCloud log (data/owncloud.log)

{"app":"webdav","message":"Exception: Sabre_DAV_Exception_NotFound: File with name OmniDAV-Conformance-Tests could not be located","level":4,"time":"2014-04-02T18:54:52+00:00"}
{"app":"PHP","message":"Call to undefined method OC_Connector_Sabre_Directory::getETag() at \/Library\/Server\/Web\/Data\/Sites\/cloud.net-kitchen.com\/3rdparty\/Sabre\/DAV\/Locks\/Plugin.php#504","level":3,"time":"2014-04-02T18:54:55+00:00"}
{"app":"PHP","message":"Call to undefined method OC_Connector_Sabre_Directory::getETag() at \/Library\/Server\/Web\/Data\/Sites\/cloud.net-kitchen.com\/3rdparty\/Sabre\/DAV\/Locks\/Plugin.php#504","level":3,"time":"2014-04-02T18:54:58+00:00"}
{"app":"webdav","message":"Exception: Sabre_DAV_Exception_PreconditionFailed: The destination node already exists, and the overwrite header is set to false","level":4,"time":"2014-04-02T18:55:08+00:00"}
{"app":"webdav","message":"Exception: Sabre_DAV_Exception_PreconditionFailed: The destination node already exists, and the overwrite header is set to false","level":4,"time":"2014-04-02T18:55:10+00:00"}
{"app":"webdav","message":"Exception: Sabre_DAV_Exception_PreconditionFailed: The destination node already exists, and the overwrite header is set to false","level":4,"time":"2014-04-02T18:55:11+00:00"}
{"app":"webdav","message":"Exception: Sabre_DAV_Exception_PreconditionFailed: The destination node already exists, and the overwrite header is set to false","level":4,"time":"2014-04-02T18:55:12+00:00"}

Browser log

NA

Activity

  1. DeepDiver1975 commented on Apr 3, 2014

    @DeepDiver1975
    Contributor

    Looks like some issues with dav locking.

    @ddmckay Can you please let us know which uri is passed into this lock call? access.log should contain all the information

    @evert Looks like the sabre code is missing a null check?

                            $uri = $conditionUri?$conditionUri:$this->server->getRequestUri();
                            $node = $this->server->tree->getNodeForPath($uri);
                            $etagValid = $node->getETag()==$conditionToken[2];
  2. ddmckay commented on Apr 3, 2014

    @ddmckay
    Author

    I'm not sure I can pinpoint the URL. The access_log for the minute or so the test runs looks like this (IP address was replaced with ???.???.???.???):

    ???.???.???.??? - - [02/Apr/2014:14:54:51 -0400] "PROPFIND /remote.php/webdav/ HTTP/1.1" 401 291
    ???.???.???.??? - dwight [02/Apr/2014:14:54:51 -0400] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 587
    ???.???.???.??? - - [02/Apr/2014:14:54:51 -0400] "PROPFIND /remote.php/webdav/.com.omnigroup.OmniPresence/ HTTP/1.1" 207 615
    ???.???.???.??? - - [02/Apr/2014:14:54:52 -0400] "DELETE /remote.php/webdav/OmniDAV-Conformance-Tests/ HTTP/1.1" 404 302
    ???.???.???.??? - - [02/Apr/2014:14:54:52 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:52 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:52 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:52 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/tmp/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:53 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/doc/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:53 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/doc/contents HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:53 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/ HTTP/1.1" 207 675
    ???.???.???.??? - - [02/Apr/2014:14:54:53 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/doc/ HTTP/1.1" 207 679
    ???.???.???.??? - - [02/Apr/2014:14:54:53 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/tmp/doc/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:54 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/tmp/doc/contents HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:55 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:%20/parent/tmp/doc/ HTTP/1.1" 500 -
    ???.???.???.??? - - [02/Apr/2014:14:54:55 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:55 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:55 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/tmp/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:56 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/doc/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:56 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/doc/contents HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:56 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/ HTTP/1.1" 207 673
    ???.???.???.??? - - [02/Apr/2014:14:54:56 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/doc/ HTTP/1.1" 207 677
    ???.???.???.??? - - [02/Apr/2014:14:54:57 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/tmp/doc/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:57 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/tmp/doc/contents HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:58 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatesModificationDate:-/parent/tmp/doc/ HTTP/1.1" 500 -
    ???.???.???.??? - - [02/Apr/2014:14:54:58 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:58 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:%20/dir/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:54:59 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:%20/dir/ HTTP/1.1" 207 653
    ???.???.???.??? - - [02/Apr/2014:14:55:00 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:%20/dir/ HTTP/1.1" 207 653
    ???.???.???.??? - - [02/Apr/2014:14:55:00 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:00 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:-/dir/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:00 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:-/dir/ HTTP/1.1" 207 651
    ???.???.???.??? - - [02/Apr/2014:14:55:02 -0400] "PROPFIND /remote.php/webdav/OmniDAV-Conformance-Tests/fortestServerDateMovesForward:-/dir/ HTTP/1.1" 207 651
    ???.???.???.??? - - [02/Apr/2014:14:55:02 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:02 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:02 -0400] "COPY /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:02 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:03 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:03 -0400] "COPY /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyFileReturnsDestinationURL:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:03 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:03 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:03 -0400] "COPY /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:04 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:04 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:04 -0400] "COPY /remote.php/webdav/OmniDAV-Conformance-Tests/fortestCopyCollectionReturnsDestinationURL:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:04 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:04 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:05 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:05 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:05 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:06 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileReturnsDestinationURL:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:06 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:06 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:06 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:06 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:07 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:07 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionReturnsDestinationURL:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:07 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:07 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:07 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:%20/b HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:08 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:%20/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:08 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:%20/b HTTP/1.1" 412 361
    ???.???.???.??? - - [02/Apr/2014:14:55:08 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:08 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:08 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:-/b HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:09 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:-/a HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:09 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileIfMissing:-/b HTTP/1.1" 412 361
    ???.???.???.??? - - [02/Apr/2014:14:55:10 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:10 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:10 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:%20/b/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:10 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:10 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:%20/b/ HTTP/1.1" 412 361
    ???.???.???.??? - - [02/Apr/2014:14:55:11 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:11 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:11 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:-/b/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:11 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:11 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionIfMissing:-/b/ HTTP/1.1" 412 361
    ???.???.???.??? - - [02/Apr/2014:14:55:12 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveFileToDeeplyMissingCollection:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:15 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:%20/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:15 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:%20/a/ HTTP/1.1" 409 274
    ???.???.???.??? - - [02/Apr/2014:14:55:15 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:%20/a/ HTTP/1.1" 409 274
    ???.???.???.??? - - [02/Apr/2014:14:55:16 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:16 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:-/a/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:17 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:-/a/ HTTP/1.1" 409 274
    ???.???.???.??? - - [02/Apr/2014:14:55:17 -0400] "MOVE /remote.php/webdav/OmniDAV-Conformance-Tests/fortestMoveCollectionToDeeplyMissingCollection:-/a/ HTTP/1.1" 409 274
    ???.???.???.??? - - [02/Apr/2014:14:55:17 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:17 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:%20/file HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:18 -0400] "GET /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:%20/file HTTP/1.1" 200 174
    ???.???.???.??? - - [02/Apr/2014:14:55:18 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:18 -0400] "PUT /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:-/file HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:18 -0400] "GET /remote.php/webdav/OmniDAV-Conformance-Tests/fortestDownloadingCompressedDataStaysCompressed:-/file HTTP/1.1" 200 174
    ???.???.???.??? - - [02/Apr/2014:14:55:18 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestFail:%20/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:19 -0400] "MKCOL /remote.php/webdav/OmniDAV-Conformance-Tests/fortestFail:-/ HTTP/1.1" 201 -
    ???.???.???.??? - - [02/Apr/2014:14:55:19 -0400] "DELETE /remote.php/webdav/OmniDAV-Conformance-Tests/ HTTP/1.1" 204 -
    
  3. DeepDiver1975 commented on Apr 3, 2014

    @DeepDiver1975
    Contributor

    hmmm - I would have expected a LOCK request ....

  4. evert commented on Apr 3, 2014

    @evert

    This error did not happen during creation of a new LOCK, but during validating an If header. In 1.7 this is handled by the LOCK plugin, because it's also used to validate lock-tokens.

    If was used here to validate etags though, but incorrectly. For some reason the client tries to validate an etag on a collection.

    This is a sabredav bug, but it may or may not also be a bug in that client. I'll look into this from the sabre/dav side though.

  5. DeepDiver1975 commented on Apr 4, 2014

    @DeepDiver1975
    Contributor

    Awesome Evert. Thanks a lot.

    Von Samsung Mobile gesendet

    -------- Ursprüngliche Nachricht --------
    Von: Evert Pot [email protected]
    Datum:04.04.2014 00:46 (GMT+01:00)
    An: owncloud/core [email protected]
    Cc: Thomas Müller [email protected]
    Betreff: Re: [core] OmniPresence webdav client and getETag() (#8033)

    This error did not happen during creation of a new LOCK, but during validating an If header. In 1.7 this is handled by the LOCK plugin, because it's also used to validate lock-tokens.

    If was used here to validate etags though, but incorrectly. For some reason the client tries to validate an etag on a collection.

    This is a sabredav bug, but it may or may not also be a bug in that client. I'll look into this from the sabre/dav side though.

    —
    Reply to this email directly or view it on GitHub.

  6. evert commented on Apr 4, 2014

    @evert

    That bug is now fixed.

  7. ybart commented on May 21, 2014

    @ybart

    After manually updated Sabre to 1.7.12 which is shipping the fix for the issue.

    The check still fails with the following message from OmniPresence against ownCloud 6.0.3.1 running on PHP 5.4.27/FPM on OVH shared hosting server:

    Error Connecting!

    We could not connect to your selected cloud location.

    Unable to perform WebDAV operation.

    The owncloud server returned "precondition failed" (412) in response to a request to "MOVE" /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatedModificationDate: /parent/tmp/doc

    capture decran 2014-05-21 a 11 26 03

  8. DeepDiver1975 commented on May 21, 2014

    @DeepDiver1975
    Contributor

    Looks like we need to upgrade SabreDAV to 1.7.12 for OC7

    @karlitschek FYI

  9. ybart commented on May 21, 2014

    @ybart

    It seems there is still a problem with OmniPresence even after manual upgrade of Sabre to 1.7.12.

  10. DeepDiver1975 commented on May 21, 2014

    @DeepDiver1975
    Contributor
  11. evert commented on May 22, 2014

    @evert

    To add on what I said about this the first time round:

    I suspected that, even though this is a sabredav bug.. that this bug was only triggered as a result of a bug that was in omnipresence. We basically returned an incorrect error (500 instead of 412).

    So we are doing things correctly now. I would report a bug at omnipresence.

  12. tjw commented on Jul 11, 2014

    @tjw

    Howdy -- I'm the main developer on OmniPresence, so I thought I'd chime in with a few notes. If I'm misreading this thread, my apologies!

    The source for the test in question is here https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniDAV/ODAVConformanceTest.m#L682

    This test sets up a destination directory and records the final ETag. It then attempts to move another directory to replace it, with the precondition that the ETag on the destination hasn't changed, and with overwrite enabled. This should fail if the destination was modified since we gathered the ETag and it should fail w/o overwrite, but since neither of these are the case, the MOVE should succeed (so we should be getting back a 2xx code instead of 500 or 412 -- Apache sends 204 No Content).

    If you'd like to run our conformance tests directly, you can:

    * clone the OmniGroup framworks 
    * Open OmniGroup/Workspaces/OmniFrameworks.xcworkspace
    * Select the ODAVUnitTests scheme
    * Select “Edit Scheme” from the schems popup and change the Run -> Arguments -> Environment Variables to point at the DAV server/account you'd like to use
    * cmd-u to run the tests
    

    For extra details, you can edit the scheme to add an ODAVConnectionDebug=10 environment variable.

    When run against my local Apache instance (which has a custom log format to emit If tests in the log), I get the following logs:

    fe80::72cd:60ff:fef3:7a35 - test9 [31/Jan/2014:14:10:01 -0800] "DELETE /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/ HTTP/1.1" 401 381 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "DELETE /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/ HTTP/1.1" 404 274 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "MKCOL /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/ HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "MKCOL /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/ HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "MKCOL /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/tmp/ HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "MKCOL /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/ HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "PUT /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/contents HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "PROPFIND /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/ HTTP/1.1" 207 681 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "PROPFIND /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/ HTTP/1.1" 207 685 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "MKCOL /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/tmp/doc/ HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:01 -0800] "PUT /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/tmp/doc/contents HTTP/1.1" 201 71 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:02 -0800] "MOVE /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/tmp/doc/ HTTP/1.1" 204 - "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "https://tiny.local:8001/test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/" "<https://tiny.local:8001/test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/> ([\"66-4f14b6f6b8040\"])" "-"
    fe80::72cd:60ff:fef3:7a35 - test10 [31/Jan/2014:14:10:02 -0800] "PROPFIND /test10/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/ HTTP/1.1" 207 681 "-" "otest Darwin/10.9.1 (MacPro6%2C1) (tiny.local)" "-" "-" "-"
    

    And for the actual MOVE command, the extra logging noted above shows that we send this (formatted more plist-y than as a HTTP request):

    2014-07-10 18:01:48.734 otest[13261:1007] request URL: https://tiny.local:8001/test0/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/tmp/doc/
    2014-07-10 18:01:48.734 otest[13261:1007] request headers: {
        Accept = "*/*";
        "Accept-Encoding" = "gzip, deflate";
        "Accept-Language" = "en-us";
        Destination = "https://tiny.local:8001/test0/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/";
        If = "<https://tiny.local:8001/test0/-%5BODAVDynamicTestCase%20testReplacedCollectionUpdatesModificationDate%5D/parent/doc/> ([\"66-4fde07be5c500\"])";
        Overwrite = T;
        "User-Agent" = "otest Darwin/10.9.4 (MacPro6%2C1) (tiny.local)";
    }
    

    In particular, note that the If header is applying the ETag predicate to the destination of the MOVE, not the source.

    I hope this helps!

  13. evert commented on Jul 11, 2014

    @evert

    SabreDAV does not support ETags on collections.

    The ETag generally only says something about the result of a GET request with a certain set of Accept* headers.

    Collections in sabredav should not emit etags because we don't really support GET-like operations on collections. GET may be supported when the browser plugin is enabled, but even if the browser plugin is enabled, sabredav should not be emitting etags for those requests.

    So I see two potential explanations for this issue:

    1. SabreDAV (or specifically OwnCloud) is emitting an Etag for a collection, and we shouldn't.
    2. OmniPresence is providing us with an If header, with an ETag condition on a collection where it shouldn't.

    Is this a correct assumption? It would be especially helpful if someone from owncloud can comment on the fact that you're doing something specific with etags that baseline sabredav does not, because i know you guys have made a number of modifications to facilitate sync applications.

  14. DeepDiver1975 commented on Jul 11, 2014

    @DeepDiver1975
    Contributor

    Regarding etags on collections: we use these etags to detect changes of the folder and subfolders within.
    we implemented a mechanism to propagate changes up to the root folder.

  15. 17 remaining items

  16. removed this from the backlog milestone on Oct 10, 2017
  17. ownclouders commented on Jan 13, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  18. PVince81 commented on Jan 15, 2018

    @PVince81
    Contributor

    Please reopen if the problem still exists with 10.0.5 RC3.

    Also note that we will not replace the syncing mechanism with a new approach as it would involve rewriting all the clients.

  19. DavidShepherdson commented on Apr 21, 2018

    @DavidShepherdson

    Just noting for the record that I upgraded my ownCloud installation today to 10.0.7, and it still fails the OmniPresence conformance tests, with a similar message to the posts earlier:

    Unable to perform WebDAV operation.
    The [domain] server returned "precondition failed" (412) in response to a request to "MOVE /owncloud/remote.php/dav/files/david/OmniDAV-Conformance-Tests-jyOyTeGAhC3/fortestReplacedCollectionUpdatesModificationDate: /parent/tmp/doc".

    Let me know if there are any other logs I can supply that would be useful (assuming the problem is on the ownCloud side, of course).

  20. qin-nz commented on Jul 16, 2018

    @qin-nz

    @PVince81 it still fails in 10.0.8 (stable). Please reopen this issue.

  21. qin-nz commented on Jul 18, 2018

    @qin-nz

    Please note that there is a space in the path.
    The owncloud server returned "precondition failed" (412) in response to a request to "MOVE" /remote.php/webdav/OmniDAV-Conformance-Tests/fortestReplacedCollectionUpdatedModificationDate: /parent/tmp/doc

    Date: /parent

  22. CorneeldH commented on Sep 13, 2018

    @CorneeldH

    Hi there, news from the SURFdrive community. We have also customers reporting the desire to work via OmniPresence, but receiving the very same error. Any updates / workarounds?

  23. michaelstingl commented on Sep 13, 2018

    @michaelstingl

    @CorneelDragon please open support ticket and reference this issue.

  24. michaelstingl commented on Sep 14, 2018

    @michaelstingl

    @CorneelDragon This could be a workaround:

    Let ownCloud desktop client sync data to the directory Omni Sync Server server uses. Then OmniPresence client can access oC data via Omni Sync Server.

    It seems the Omni WebDAV universe isn't compatible with the ownCloud WebDAV universe.

  25. dmin7b5 commented on Oct 30, 2019

    @dmin7b5

    It still fails in 17.0.0 (stable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions