Cache Folder fills with file chunks

Nextcloud version: 12.0.3
Operating system and version: Debian Linux 8
Apache or nginx version: Apache 2.4.10
PHP version: 5.6.30
Is this the first time you’ve seen this error?: no

Can you reliably replicate it?: no, but it seems to occur with .3dm Files only (https://www.rhino3d.com/)

The issue you are facing: One Users Cache folder fills with file chunks of 10MB

The output of your Nextcloud log in Admin > Logging:

Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 4456448	2017-12-12T16:59:33+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 1720320	2017-12-12T16:59:33+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 9256960	2017-12-12T16:55:45+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 3817472	2017-12-12T16:55:45+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 4521984	2017-12-12T16:51:13+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 3358720	2017-12-12T16:51:13+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 5357568	2017-12-12T16:48:02+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 8159232	2017-12-12T16:48:01+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 9502720  2017-12-12T16:46:21+0100`

	Sabre\DAV\Exception\BadRequest: expected filesize 10000000 got 7946240

    /var/www/vhosts/ma-ma.io/meine/httpdocs/apps/dav/lib/Connector/Sabre/File.php - line 105: OCA\DAV\Connector\Sabre\File->createFileChunked(Resource id #18)
    /var/www/vhosts/ma-ma.io/meine/httpdocs/apps/dav/lib/Connector/Sabre/Directory.php - line 151: OCA\DAV\Connector\Sabre\File->put(Resource id #18)
    /var/www/vhosts/ma-ma.io/meine/httpdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096: OCA\DAV\Connector\Sabre\Directory->createFile('171212_Blumeneg...', Resource id #18)
    /var/www/vhosts/ma-ma.io/meine/httpdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile('ma_ma/018 FM Bl...', Resource id #18, NULL)
    [internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/vhosts/ma-ma.io/meine/httpdocs/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
    /var/www/vhosts/ma-ma.io/meine/httpdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
    /var/www/vhosts/ma-ma.io/meine/httpdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/vhosts/ma-ma.io/meine/httpdocs/apps/dav/appinfo/v1/webdav.php - line 76: Sabre\DAV\Server->exec()
    /var/www/vhosts/ma-ma.io/meine/httpdocs/remote.php - line 162: require_once('/var/www/vhosts...')
    {main}`

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '**************',
  'passwordsalt' => '****************************',
  'secret' => '********************************',
  'trusted_domains' =>
  array (
    0 => 'f.q.d.n',
  ),
  'datadirectory' => '/path/to/nc/data',
  'overwrite.cli.url' => 'https://f.q.d.n',
  'dbtype' => 'mysql',
  'version' => '12.0.3.3',
  'dbname' => 'db_*****',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '********',
  'dbpassword' => '**********',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'd.n',
  'loglevel' => 2,
  'maintenance' => false,
  'theme' => '',
  'cache_chunk_gc_ttl' => 86400,
);

The output of your Apache/nginx/system log in /var/log/____:

i.p.a.drr - user [12/Dec/2017:16:47:23 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3495246372-23-1 HTTP/1.1" 400 971 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:47:23 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3495246372-23-0 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:50:53 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3646788306-23-8 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:50:47 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3646788306-23-7 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:55:24 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-2476568464-23-12 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:54:53 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-2476568464-23-10 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:59:22 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3900809378-23-10 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
i.p.a.drr - user [12/Dec/2017:16:59:14 +0100] "PUT /remote.php/webdav/ma_ma/018%20FM%20Blumenegg/2%20Vorentwurf/171212_Blumenegg%20Pavillon%202.3dm-chunking-3900809378-23-9 HTTP/1.1" 400 826 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"

thanks.