Skip to content

Sabre\DAV\Exception\NotFound: HTTP/1.1 404 - when uploading files via WEBDAV #2887

@navimike

Description

@navimike

Steps to reproduce

  1. Install NC on shared host (all-inkl with SSL Lets encrypt in my case) using mySQL
  2. Create user
  3. OS X - Finder - Cmd+K: Connect to https://host.url/remote.php/webdav using user credentials
  4. Try to upload a file

Expected behaviour

File should be uploaded.

Actual behaviour

File with 0 kB is created, but Finder shows error message (German) "Der Finder konnte diesen Vorgang nicht abschließen, da einige Daten in „coupon2.pdf“ nicht gelesen oder geschrieben werden konnten.
(Fehler: -36)" Error:-36

Upload with Cyberduck via WebDAV (HTTPS) works.

Server configuration

Operating system:
Linux 3.13.0-105-generic #152-Ubuntu SMP Fri Dec 2 15:37:11 UTC 2016 x86_64
Web server:
Apache
Database:
MySQL Server-Version: 5.6.33-nmm1-log - (Ubuntu)
PHP version:
7.0.10-NMM1 as CGI/FPM
Nextcloud version: (see Nextcloud admin page)
11.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
10.0.2 / same behavior for fresh install
Where did you install Nextcloud from:
tar file from nextcloud.com
Signing status:

Signing status No errors have been found.

List of activated apps:

App list Contacts Calendar

The content of config/config.php:

Config report '[REMOVED]', 'passwordsalt' => '[REMOVED]', 'secret' => '[REMOVED]', 'trusted_domains' => array ( 0 => '[REMOVED].[REMOVED].[REMOVED]', ), 'datadirectory' => '/www/htdocs/[REMOVED]/[REMOVED]_data', 'tempdirectory' => '/www/htdocs/[REMOVED]/[REMOVED]_temp', 'overwrite.cli.url' => 'https://[REMOVED].[REMOVED].it', 'dbtype' => 'mysql', 'version' => '11.0.0.10', 'dbname' => '[REMOVED]', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '[REMOVED]', 'dbpassword' => '[REMOVED]', 'logtimezone' => 'UTC', 'installed' => true, 'mail_from_address' => '[REMOVED]', 'mail_smtpmode' => 'php', 'mail_domain' => '[REMOVED].[REMOVED]', 'loglevel' => 0, 'mail_smtpsecure' => 'ssl', 'theme' => '', 'maintenance' => false, );

Are you using external storage, if yes which one: No.

Are you using encryption: yes, but same behavior without encryption (tested with new installation)

Are you using an external user-backend, if yes which one: No.

Client configuration

Browser:
Finder (Browser upload works)
Operating system:
Mac OS X 10.12.2

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log {"reqId":"[REMOVED]","remoteAddr":"[REMOVED]","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 404 File with name coupon2.pdf could not be located\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotFound\",\"Code\":0,\"Trace\":\"#0 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(939): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('coupon2.pdf')\\n#1 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(336): Sabre\\\\DAV\\\\Server->getPropertiesForPath('coupon2.pdf', Array, 0)\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPropFind(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PROPFIND', Array)\\n#5 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/remote.php(165): require_once('\\\/www\\\/htdocs\\\/w01...')\\n#8 {main}\",\"File\":\"\\\/www\\\/htdocs\\\/[REMOVED]\\\/[REMOVED]\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":173,\"User\":\"Michael\"}","level":0,"time":"2016-12-29T18:34:33+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/coupon2.pdf","user":"Michael","version":"11.0.0.10"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions