WEB DAV Write Access broken from Nextcloud 14.0.3 to 15.0.0
After updating from nextcloud 14.03 to nextcloud 15 programtically copying a file from a windows pc to nextcloud fails. The other direction is still fine. Acces is made throug "net use" (without connecting a drive) using webdav access. The testcode is a three liner in python. Log Entries from nextcloud are included in the attached file. I can reproduce that this code works under nextcloud 14.03 and that it fails under nextcloud 15 (both tested today).
what exactly is the meaning of the last comment?
deaktivated all my apps except the default encryption module (since I use encryption): nothing changed (upload fails; download ok); when I deactivate default encryption module then the download fails as well (which is no surprise).
what exactly is the meaning of the last comment?
@IngoEF @SDWWHV could you share the list of activated apps?
If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder@nextcloud/server-triage
currently no ssh access
disabled all apps excluding "user_ldap" and "files_external". The behaviour remains the same.
no errors after changing the /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php against the one out of version 14.0.6 Any explanations?
Hy @IngoEF: you are a genious - thanks a lot! I can confirm that your solution works for me as well.
Feedback from developers side would be great. Especiall if the above cited change request will really solve the issue in 15.0.3?
Could be another regression from https://github.com/nextcloud/server/pull/12072
If you restore the original File.php from nextcloud 15 and change it like in this pull request https://github.com/nextcloud/server/pull/13829 does it work for you as well?
Thank you for helping me to answer my question by myselfe:
I replaced in the original NC 15 file: if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) { by if (false && $partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) {
This version works for me as well. Great. As far as I saw for @SDWWHV it was no fix.
Great, thanks
@MorrisJobke @rullzer @icewind1991 :ping_pong:
Sorry don't know how to reproduce this case. It could be related to external storage. Looks like they are accessing nextcloud by webdav.
@MorrisJobke @rullzer @icewind1991 🏓
Sorry don't know how to reproduce this case. It could be related to external storage. Looks like they are accessing nextcloud by webdav.
You are right, here we use auth trough LDAP / Active Directory and external drive which is bound to a windows share. The use case is upload files over Nextcloud's WebDAV to that external drive.
I also changed the original version 15.0.2 of "File.php#l168" like tstreibl did and confirm the error disappeared.
Hope the error will not be part of the next version.
Thanks for help.
Hi Guys I downgraded (fresh installed) to 14.06 and it works perfectly fine, no issues. can create/upload documents using WebDav. If you just want to quickly test, then just rename the nextcloud folder (/var/www/nextcloud) to nextcloud.old and unzip the nextcloud 14.06 there with right permissions.
I've got the same problem but none of the fixes here helped.
First the python script provided by @tstreibl connects to \\mycloudadress.de@ssl\nextcloud\remote.php\webdav but the docs are using \\mycloudadress.de@ssl\nextcloud\remote.php\dav\files\USERNAME instead https://docs.nextcloud.com/server/15/user_manual/files/access_webdav.html#mapping-drives-with-the-command-line
When I use the link of the docs, all I get is an empty folder. Might be related to #698 https://github.com/nextcloud/documentation/issues/698#issuecomment-396907025
Using the /remote.php/webdav link works, but shows the error discussed here.
I tried #13829 and replacing Files.php with this one https://github.com/nextcloud/server/blob/stable14/apps/dav/lib/Connector/Sabre/File.php but without success.
Hi SR4ven,
in my configuration both kind of webdav links work identically. Tested for NC15.
In my example program you won't get an error message when the net use command fails - you only see errors after the first file access . So to test I would suggest to type in the "net use command" the python program creats on the windows command line and see what happens (should show "der Befehl wurde erfolgreich ausgeführt). Alternatively you can try to attach a windows network drive with the webdav address. But obviously you managed to connect.
Note that the proposed fix up till now is to make the above one line code replacement in the original NC15 file, although some users with external storage seem to report that it doesn't work for them. On my system (without external storage) it works perfectly.
It might be a problem with the external storage then. I'm only using it for mounting local folders located on different disks, but I guess that's where the problem lies then. Also, I'm able to mount the webdav with both of the provided links, it's just that the one listed in the docs doesn't show any files or folders.
I think I might have a fix for this. There was an issue with empty files.
our problem was related to any files. Empty or not.
Here on 15.0.4 stable (NextcloudPi on Odroid-HC2)
1 - via web browser
file upload >2Go is broken. (Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 0, expected filesize: -1 )
Change File.php to Stable15 version and edit like in pull request #13829 adding (false &&)
Now i can upload >2Go file but can't empty trashbin with the uploaded file (loop).
Have to use oss trashbin:cleanup to empty trash
2 - via Webdav client (cyberduck)
webdav "not chunking", file is back shrinking to 2.15Go after refreshing page
Not fixed in 15.05.
\\mycloudadress.de@ssl\nextcloud\remote.php\dav\files\USERNAME still opens an empty folder in Windows Explorer.
My installation is in a subdir and I'm using a local external storage.
In nextcloud 15.05 with antivirus app enabled i have 0x8000FFFF error when i created a file in webdav folder. If i desactivate antivirus app no more error.
Why is the "needs info" label still there? What additional information is required/missing for fixing that issue?