Ensure the /nifi-api/controller redirection filter executes before matching.
This closes # 2358.
@@ -21,6 +21,7 @@ import org.apache.nifi.web.api.SiteToSiteResource;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
+import javax.ws.rs.container.PreMatching;
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.core.UriInfo;
import java.io.IOException;
@@ -29,6 +30,7 @@ import java.net.URI;
/**
* This filter provides backward compatibility for Resource URI changes.
*/
+@PreMatching
public class RedirectResourceFilter implements ContainerRequestFilter {
/**
