mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: filter rewrite path warnings updated
parent
287fe79deb
commit
47e6e58ba2
|
@ -46,7 +46,8 @@ public class ApiRestPathRewriteFilter implements Filter {
|
||||||
@Override
|
@Override
|
||||||
public void init(FilterConfig filterConfig) throws ServletException {
|
public void init(FilterConfig filterConfig) throws ServletException {
|
||||||
log.warn("Support for deprecated REST API paths enabled. Update your REST API clients to use the new paths");
|
log.warn("Support for deprecated REST API paths enabled. Update your REST API clients to use the new paths");
|
||||||
log.warn("Deprecated path support will be removed in a future version. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false");
|
log.warn(
|
||||||
|
"Deprecated path support will be removed in a future release. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -76,8 +77,7 @@ public class ApiRestPathRewriteFilter implements Filter {
|
||||||
((HttpServletRequest) request).getRequestURL().toString().replaceFirst(oldBasePath, newBasePath));
|
((HttpServletRequest) request).getRequestURL().toString().replaceFirst(oldBasePath, newBasePath));
|
||||||
|
|
||||||
String logPathEnding = oldBasePath.endsWith("/") ? "**" : "/**";
|
String logPathEnding = oldBasePath.endsWith("/") ? "**" : "/**";
|
||||||
log.warn(
|
log.warn("Path {} is deprecated. Use path {} instead. Deprecated path will be removed in a future release",
|
||||||
"Path {} is deprecated. Use path {} instead. Deprecated path will be removed in a major release in the future",
|
|
||||||
oldBasePath + logPathEnding, newBasePath + logPathEnding);
|
oldBasePath + logPathEnding, newBasePath + logPathEnding);
|
||||||
|
|
||||||
chain.doFilter(new HttpServletRequestWrapper((HttpServletRequest) request) {
|
chain.doFilter(new HttpServletRequestWrapper((HttpServletRequest) request) {
|
||||||
|
|
Loading…
Reference in New Issue