Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class IncomingFilter implements ContainerRequestFilter, ConfigurationChan
private static final Set<String> allowedPaths = new HashSet<>(Arrays.asList(
SearchController.PATH, SuggesterController.PATH, SuggesterController.PATH + "/config",
HistoryController.PATH, FileController.PATH, AnnotationController.PATH,
SystemController.PATH + "/ping"));
SystemController.PATH + "/ping", SystemController.PATH + "/indextime" ));

@Context
private HttpServletRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,9 @@ void systemPathDescWithoutTokenTest() throws Exception {

assertEquals(Response.Status.UNAUTHORIZED.getStatusCode(), captor.getValue().getStatus());
}

@Test
void systemIndexTimeRemoteWithoutTokenTest() throws Exception {
assertFilterDoesNotBlockAddress("10.0.0.1", "system/indextime");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use SystemController.PATH plus perhaps add a constant for the endpoint.

}
}