Symptoms

A POST request to create a resource in scope of an APS application fails with the error:

Connection terminated as request was larger than 10485760

Cause

The default limit for POST size is 10MB. In case an APS application attempts to send a data packet larger than 10Mb, the operation fails.

The request to increase the maximum POST size will be considered in scope of PFR-2340.

Resolution

  1. Open /usr/local/pem/wildfly-11.0.0.Final/standalone/configuration/standalone-full-ha.xml for editing (note: Wildfly version in the directory name may differ version to version) and find the section:

    <subsystem xmlns="urn:jboss:domain:undertow:4.0">
    ...
    <server name="aps-service-server" servlet-container="aps-servlet-container">
            <https-listener name="aps-service-https" socket-binding="aps-service" worker="aps-service" security-realm="SRealmAPSService" verify-client="REQUESTED"/>
            <host name="default-host" default-web-module="aps-service-root.war"/>
        </server>
    ...
    </subsystem>
    
  2. Add max-post-size="104857600" value to the definition of aps-service-server:

    <subsystem xmlns="urn:jboss:domain:undertow:4.0">
    ...
    <server name="aps-service-server" servlet-container="aps-servlet-container">
            <https-listener name="aps-service-https" socket-binding="aps-service" worker="aps-service" security-realm="SRealmAPSService" verify-client="REQUESTED" max-post-size="104857600"/>
            <host name="default-host" default-web-module="aps-service-root.war"/>
        </server>
    ...
    </subsystem>
    
  3. Restart OSS Core services.

Internal content