Skip to content

Commit

Permalink
KNOX-1391 - Fix IllegalStateException when accessing Admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
moresandeep committed Jul 19, 2018
1 parent 5298548 commit 4fdefcb
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -168,8 +168,13 @@ public void doFilter( ServletRequest servletRequest, ServletResponse servletResp
if( f != null ) {
try {
f.doFilter( servletRequest, servletResponse );
//TODO: This should really happen naturally somehow as part of being a filter. This way will cause problems eventually.
chain.doFilter( servletRequest, servletResponse );

/* if response is committed in case of SSO redirect no need to apply further filters */
if(!servletResponse.isCommitted()) {
//TODO: This should really happen naturally somehow as part of being a filter. This way will cause problems eventually.
chain.doFilter( servletRequest, servletResponse );
}

} catch( IOException e ) {
LOG.failedToExecuteFilter( e );
throw e;
Expand Down

0 comments on commit 4fdefcb

Please sign in to comment.