Generate URL links not working google weather map
book
Article ID: 230432
calendar_today
Updated On:
Products
CA Performance Management - Usage and Administration
Issue/Introduction
GenerateURL for google weather map app, it stopped working, when I generate a new one the user gets this error xxx.domain.com refused to connect.
Environment
Dx NetOps Performance Management 21.2.x
Resolution
- Backup and edit /opt/CA/PerformanceCenter/PC/webapps/pc/WEB-INF/web.xml
- Look for the following section
-
<filter-mapping>
<filter-name>StaticContentAuthenticationFilter</filter-name>
<url-pattern>/mibs/*</url-pattern>
<url-pattern>*.bmp</url-pattern>
<url-pattern>*.css</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>*.swf</url-pattern>
<url-pattern>*.gif</url-pattern>
<url-pattern>*.png</url-pattern>
<url-pattern>*.jpg</url-pattern>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.ttf</url-pattern>
<url-pattern>*.svg</url-pattern>
<url-pattern>*.ico</url-pattern>
</filter-mapping>
- Use the mibs line to create an entry for apps. It should look like the following
- <filter-mapping>
<filter-name>StaticContentAuthenticationFilter</filter-name>
<url-pattern>/mibs/*</url-pattern>
<url-pattern>/apps/*</url-pattern>
<url-pattern>*.bmp</url-pattern>
<url-pattern>*.css</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>*.swf</url-pattern>
<url-pattern>*.gif</url-pattern>
<url-pattern>*.png</url-pattern>
<url-pattern>*.jpg</url-pattern>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.ttf</url-pattern>
<url-pattern>*.svg</url-pattern>
<url-pattern>*.ico</url-pattern>
</filter-mapping>
- Save that file
- Backup and edit /opt/CA/PerformanceCenter/PC/webapps/pc/META-INF/spring/bean.xml
- Look for the following block
- <bean id="skipAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
<property name="urlPatterns">
<set>
<value>/pc/center</value>
<value>/pc/center/.*</value>
<value>/pc/odata</value>
<value>/pc/odata/.*</value>
<value>/pc/mibs/.*</value>
<value>/pc/view/.*</value>
<value>/pc/repository/.*</value>
<value>[^\?]+\.(bmp|css|js|swf|gif|png|jpg|jsp|ttf|svg|ico)(\?.*)?</value>
</set>
</property>
</bean>
- Using the mibs line, add a line for apps so that it looks like the following
- <bean id="skipAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
<property name="urlPatterns">
<set>
<value>/pc/center</value>
<value>/pc/center/.*</value>
<value>/pc/odata</value>
<value>/pc/odata/.*</value>
<value>/pc/mibs/.*</value>
<value>/pc/apps/.*</value>
<value>/pc/view/.*</value>
<value>/pc/repository/.*</value>
<value>[^\?]+\.(bmp|css|js|swf|gif|png|jpg|jsp|ttf|svg|ico)(\?.*)?</value>
</set>
</property>
</bean>
- Save the file
- Bounce the console service with the following command
- service caperfcenter_console restart
- At this point, generate URL for you app should work.
Feedback
thumb_up
Yes
thumb_down
No