mod_security : impossible de charger des fichiers/ressources volumineux

Cet article permet de résoudre le problème de chargement de fichiers/ressources volumineux en mettant à jour vers la dernière version de mod_security.

Description description

Environnement

Adobe Experience Manager

Problème/Symptômes

La version 9 de mod_security ne peut pas charger de fichiers/ressources volumineux. Ils doivent être chargés en accédant à l’auteur (en contournant le Dispatcher).

Les utilisateurs voient ce qui suit dans le fichier error.log :

POST /content/dam/test/folder/location/test.createasset.html HTTP/1.1]


com.day.cq.dam.api.AssetManager createAsset: repository exception while creating asset [ /content/dam/test/folder/location/test/largefile.psd]


javax.jcr.RepositoryException: java.io.IOException: org.apache.jackrabbit.core.data.DataStoreException: Error in adding record


....



Caused by: org.apache.jackrabbit.core.data.DataStoreException: Error in adding record


at org.apache.jackrabbit.oak.plugins.blob.AbstractSharedCachingDataStore.addRecord(AbstractSharedCachingDataStore.java:265)


at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.addRecordInternal(DataStoreBlobStore.java:821)


at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.writeStream(DataStoreBlobStore.java:922)


at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.writeBlob(DataStoreBlobStore.java:320)


... 183 common frames omitted


Caused by: org.eclipse.jetty.io.EofException: Early EOF


at org.eclipse.jetty.server.HttpInput$3.getError(HttpInput.java:1207)


at org.eclipse.jetty.server.HttpInput$3.noContent(HttpInput.java:1195)

Les éléments suivants sont affichés dans le journal du dispatcher :

Spooling request body failed: expected 146851652 bytes, but only 134222982 received.


Spooling request body failed: expected 155287797 bytes, but only 134222313 received.


Spooling request body failed: expected 155287797 bytes, but only 134224609 received.


Spooling request body failed: expected 155287797 bytes, but only 134224235 received.


Spooling request body failed: expected 155287797 bytes, but only 134225743 received.

Les éléments suivants sont affichés dans le journal Apache :

ModSecurity: Request body (Content-Length) is larger than the configured limit (13107200). [ hostname "hostname A"]  [ uri "/content/dam/ams.createasset.html"]  [ unique_id "unique id A"] , referer:https://author-tenantid-prd.adobecqms.net/assets.html/content/dam/ams

Résolution resolution

Mettez à jour vers la dernière version de mod_security.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f