Hi All,
The callback as given below RedirectToSlashFilter needs to be called when both
/admin or /admin/ is given in the URL.
<filter>
<filter-name>RedirectToSlashFilter</filter-name>
<filter-class>com.cisco.cpm.admin.infra.utils.RedirectToSlashFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RedirectToSlashFilter</filter-name>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>RedirectToSlashFilter</filter-name>
<url-pattern>/admin</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>RedirectToSlashFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
But the above configuration calls the RedirectToSlashFilter callback only on
/admin/ and not calling on /admin. This issue needs to be fixed how to address
this issue from the tomcat side.
I tried many times the server side callback is not working for
RedirectToSlashFilter for the /admin and working for /admin/. Guide me to fix
this problem.
Thanks & Regards,
Raghav
Cisco Confidential