ModSecurity error: "Partial results are valid but processing is incomplete"

Support intro

Nextcloud version 13.0.1
Operating system and version Debian Jessie
Apache version 2.4.10-10+deb8u11
PHP version 5.6.38-0+deb8u1
libapache2-modsecurity 2.8.0-3

Hi Friends,
I’m having some issues by ModSecurity and Nextcloud.
ModSecurity print me some error log output:

[...] ModSecurity: Error reading request body: Partial results are valid but processing is incomplete [...]

With the consequence of causing the synchronization of some files to fail.
Reading some other posts, I’ve seen that Nextcloud doesn’t support ModSecurity.
What do you suggest about this issue? Should I disable ModSecurity?
And eventually, what is the best way for disable ModSecurity only for Nextcloud?

I’ve try editing the Nextcloud virtual host (SecRuleEngine):

<Directory "/var/www/owncloud/data/">
  # just in case if .htaccess gets disabled
    Require all denied
    SecRuleEngine Off

and reloading and restarting Apache, with no luck.

Many many thanks!


I seem to have solved by following these guidelines::

SecRequestBodyNoFilesLimit, establish request limits:
Maximum request body size we will accept for buffering. # If you support file uploads then the value given on the # first line has to be as large as the largest file you # want to accept. The second value refers to the size of # data, with files excluded. You want to keep that value # as low as practical.
SecRequestBodyLimit 1310720
SecRequestBodyNoFilesLimit 131072