SMB External Storage Upload Overwrite - Internal Error

When I download a file from an external SMB storage location, edit it, then try to upload it back up to the same location and overwrite the old file it fails with an internal error. The following is what the log shows:

Fatal webdav Sabre\DAV\Exception: Could not rename part file to final file 2017-10-18T10:26:09-0500
Error webdav renaming part file to final file failed ($run: true, $renameOkay: false, $fileExists: true) 2017-10-18T10:26:09-0500

Is this a bug that has yet to be fixed?

didn’t realize one of the error messages expanded. here are the details:

Sabre\DAV\Exception: Could not rename part file to final file

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1130: OCA\DAV\Connector\Sabre\File->put(Resource id #79)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 513: Sabre\DAV\Server->updateFile(‘G-Drive/NEXTCLO…’, Resource id #79, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(‘method PUT’, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 76: Sabre\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 162: require_once(’/var/www/nextcl…’)

Does this only happen with uploads via client (which uploads in chunks) or also via webdav (e.g. cyberduck, winscp) or webinterface?

This happens for me as well.
happens through web UI, and most dav-clients.
Some clients allow for other upload-mechanisms which works.

With the same message?