mod_security: no se pueden cargar archivos o recursos grandes
Este artículo proporciona una solución al problema en el que debe cargar archivos/recursos grandes al actualizar a la versión más reciente de mod_security.
Descripción description
Entorno
Adobe Experience Manager
Problema/Síntomas
La versión 9 de mod_security no puede cargar archivos o recursos grandes. Deben cargarse navegando hasta el autor (omitiendo al distribuidor).
Los usuarios ven lo siguiente en el 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)
Lo siguiente se ve en el registro de 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.
Lo siguiente se ve en el registro de 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
Resolución resolution
Actualice a la última versión de mod_security.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f