You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the reason the main page of admin console needs to redirect if trailing "/" is not specified. Is it a security feature?
It is causing a problem for use when using AWS API Gateway which removes trailing / and we get into infinite redirect loop when accessing admin console.
public Response getMainPage() throws IOException, FreeMarkerException { if (!session.getContext().getUri(UrlType.ADMIN).getRequestUri().getPath().endsWith("/")) { return Response.status(302).location(session.getContext().getUri(UrlType.ADMIN).getRequestUriBuilder().path("/").build()).build(); } ...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
What is the reason the main page of admin console needs to redirect if trailing "/" is not specified. Is it a security feature?
It is causing a problem for use when using AWS API Gateway which removes trailing / and we get into infinite redirect loop when accessing admin console.
public Response getMainPage() throws IOException, FreeMarkerException { if (!session.getContext().getUri(UrlType.ADMIN).getRequestUri().getPath().endsWith("/")) { return Response.status(302).location(session.getContext().getUri(UrlType.ADMIN).getRequestUriBuilder().path("/").build()).build(); } ...Thanks,
Harold
All reactions