When going to Tools->Launch Web UI it is going to the wrong URL
search cancel

When going to Tools->Launch Web UI it is going to the wrong URL

book

Article ID: 215916

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

When going to Tools->Launch Web UI it is going to the wrong URL

Environment

Release : 6.0.2

Component : AUTOMIC AUTOMATION INTELLIGENCE INTEGRATION FOR BMC

Cause

Restoring an old copy of a standalone.xml after upgrade to a new version.

Resolution

The <AAi installation>\jboss\standalone\configuration\standalone.xml was missing some entries in the <filters> section.


The current standalone.xml had the following:

            <filters>
                <response-header name="x-frame-options-header" header-name="X-Frame-Options" header-value="DENY"/>
                <response-header name="x-xss-protection" header-name="X-XSS-Protection" header-value="1; mode=block"/>
                <response-header name="x-content-type-options" header-name="X-Content-Type-Options" header-value="nosniff"/>
                <response-header name="csp-header" header-name="Content-Security-Policy" header-value="default-src *; script-src 'unsafe-inline' 'unsafe-eval' *; style-src 'unsafe-inline' *; frame-ancestors 'none'; object-src 'none'"/>
                <response-header name="strict-transport-security" header-name="Strict-Transport-Security" header-value="max-age=31536000; includeSubDomains;"/>
            </filters>

 


The  <filters> should have the following:

            <filters>
                <response-header name="csp-header" header-name="Content-Security-Policy" header-value="default-src *; script-src 'unsafe-inline' 'unsafe-eval' *; style-src 'unsafe-inline' *; frame-ancestors 'none'"/>
                <response-header name="x-frame-options-header" header-name="X-Frame-Options" header-value="DENY"/>
                <expression-filter name="terma" expression="path-prefix('/terma') -> redirect('/aai/web/v1$${remaining}')"/>
                <expression-filter name="aaiweb" expression="path('/aai/web') -> redirect('/aai/web/v1')"/>
                <expression-filter name="termawebui" expression="path-prefix('/termawebui') -> redirect('/aai/web/v2$${remaining}')"/>
                <expression-filter name="swagger" expression="path-prefix('/jaws/devPreview') -> redirect('/aai/devPreview$${remaining}')"/>
                <expression-filter name="swagger-json" expression="path-prefix('/jaws/api/swagger.json') -> redirect('/aai/api/swagger.json')"/>
                <expression-filter name="jawsRedirect" expression="path-prefix('/jaws') -> redirect('/aai$${remaining}')"/>
                <expression-filter name="tojaws" expression="path('/jaws') -> redirect('/aai')"/>
                <rewrite name="jawsRewrite" target="/aai/api$${remaining}"/>
            </filters>

 


In order to move forward with this issue, please make a backup of the file <AAi installation>\jboss\standalone\configuration\standalone.xml and modify the section <filters> with the following:


            <filters>
                <response-header name="csp-header" header-name="Content-Security-Policy" header-value="default-src *; script-src 'unsafe-inline' 'unsafe-eval' *; style-src 'unsafe-inline' *; frame-ancestors 'none'"/>
                <response-header name="x-frame-options-header" header-name="X-Frame-Options" header-value="DENY"/>
                <expression-filter name="terma" expression="path-prefix('/terma') -> redirect('/aai/web/v1$${remaining}')"/>
                <expression-filter name="aaiweb" expression="path('/aai/web') -> redirect('/aai/web/v1')"/>
                <expression-filter name="termawebui" expression="path-prefix('/termawebui') -> redirect('/aai/web/v2$${remaining}')"/>
                <expression-filter name="swagger" expression="path-prefix('/jaws/devPreview') -> redirect('/aai/devPreview$${remaining}')"/>
                <expression-filter name="swagger-json" expression="path-prefix('/jaws/api/swagger.json') -> redirect('/aai/api/swagger.json')"/>
                <expression-filter name="jawsRedirect" expression="path-prefix('/jaws') -> redirect('/aai$${remaining}')"/>
                <expression-filter name="tojaws" expression="path('/jaws') -> redirect('/aai')"/>
                <rewrite name="jawsRewrite" target="/aai/api$${remaining}"/>
            </filters>

 

Then, relaunch your AAI Interface.

 

Each upgrade of AAI may update the standalone.xml, you should not restore an older copy of the standalone.xml from a previous version of AAI.