mirror of https://github.com/apache/nifi.git
NIFI-4444:
- Ensure the /nifi-api/controller redirection filter executes before matching. This closes # 2358. Signed-off-by: Andy LoPresto <alopresto.apache@gmail.com>
This commit is contained in:
parent
482f371958
commit
b7c9c88f9f
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue