Importing IME Role XML Gives Bad Gateway Error
search cancel

Importing IME Role XML Gives Bad Gateway Error

book

Article ID: 106334

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

When attempting to import an IME Role XML a Bad Gateway error is generated

Environment

IM 14.2 VApp

Cause

Wildfly by default will only allow posting a file up to 10485760 bytes (i.e. 10 MB)

Resolution

Wildfly needs to be configured to allow posting of files larger than 10485760 bytes (i.e. 10 MB) but with the virtual appliance you cannot directly modify the ca-standalone-full-ha.xml file so you need to follow the below steps to update the setting in the file to allow for larger files.

1) create a user inside of jboss 

sudo /opt/CA/wildfly-idm/bin/add-user.sh -u <JBOSS_CLI_USER> -p <JBOSS_CLI_PASSWORD> 

While changing the following to the values you choose: 

<JBOSS_CLI_USER> 
<JBOSS_CLI_PASSWORD> 

For example: 

sudo /opt/CA/wildfly-idm/bin/add-user.sh -u jbosscli -p jbosscli 

The result will be something similar to this: 

Added user <JBOSS_CLI_USER>' to file '/opt/CA/wildfly-idm/standalone/configuration/mgmt-users.properties' 
Added user <JBOSS_CLI_USER>' to file '/opt/CA/wildfly-idm/domain/configuration/mgmt-users.properties' 

2) Connect in jobsscli using this command: 

/opt/CA/wildfly-idm/bin/jboss-cli.sh --connect 

This will ask for User and passord, 
User the previously created in step1: 

Authenticating against security realm: ManagementRealm 
Username: <JBOSS_CLI_USER> 
Password: <JBOSS_CLI_PASSWORD> 

and if correct will get this command prompt: 

[standalone@localhost:9990 /] 

3) Issue the following command to set the max-post-size to 101943040 bytes instead of the default of 10485760 bytes: 

/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-post-size,value=101943040) 

/subsystem=undertow/server=default-server/https-listener=https/:write-attribute(name=max-post-size,value=101943040) 

4) You may also need to update the ajp listener as well with a command such as:

/subsystem=undertow/server=default-server/ajp-listener=ajp/:write-attribute(name=max-post-size,value=101943040) 

5) Issue the following reload command: 

reload 

6) Exit the jbosscli prompt and check that the ca-standalone-full-ha.xml has been updated using following command: 
grep max-post-size /opt/CA/wildfly-idm/standalone/configuration/ca-standalone-full-ha.xml 

7)  Stop and start IM using the following command: 

stop_im 
start_im

8) Login in IM Management Console and try import the IME Role XML