Symantec Identity Manager - UT000020: Connection terminated as request was larger than 10485760
search cancel

Symantec Identity Manager - UT000020: Connection terminated as request was larger than 10485760

book

Article ID: 278972

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

While importing the identityEnv environment the following error is being thrown: ERR_CONNECTION_RESET.

The server.log is showing the below errors:

WARN  [org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest] (default task-8) Request exceeded size limit! org.apache.commons.fileupload.FileUploadException: UT000020: Connection terminated as request was larger than 10485760

Caused by: io.undertow.server.RequestTooBigException: UT000020: Connection terminated as request was larger than 10485760

Resolution

The standalone.xml being utilized for the environment will need to be updated under the default-server location. To do this first locate the appropriate location as shown below:

<server name="default-server">
                <ajp-listener name="ajp" socket-binding="ajp"/>
                <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
                <https-listener name="default-ssl" socket-binding="https" security-realm="sslrealm" enable-http2="true"/>
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <http-invoker security-realm="ApplicationRealm"/>
                </host>
            </server>

You will want to update the http-listener where name = default and default-ssl to now include the appropriate parameter.

You may also need to add the max-post-size setting to the ajp-listener as well.

Please see the example shown below:

<ajp-listener name="ajp" socket-binding="ajp" max-post-size="52428800"/>

<http-listener name="default" socket-binding="http" max-post-size="52428800" redirect-socket="https" enable-http2="true"/>

<https-listener name="default-ssl" socket-binding="https" max-post-size="52428800" security-realm="sslrealm" enable-http2="true"/>

Once the standalone.xml is updated, clear the tmp/data folder and start services.

52428800 is the new suggested default value for the application. This value might need to be larger depending on the size of the environment being imported.

The value is measured in bytes.

Additional Information

To confirm which xml file is being used see the below locations:

For Windows:
Navigate to \wildflyfolder\bin\standalone.bat

For Linux:
\wildflyfolder\bin\standalone.sh

Open the standalone.bat and look at the line:
set "STANDALONE_CONFIGURATION=standalone-full.xml"