Reply To: rewrite and picketlink: IllegalStateException

Splash Forums Rewrite Users rewrite and picketlink: IllegalStateException Reply To: rewrite and picketlink: IllegalStateException

#25440

I think you will be able to work around this issue by adding this rule to in front of all the other rules:

.addRule()
.when(Direction.isInbound())
.perform(new HttpOperation() {
   @Override
   public void performHttp(HttpServletRewrite event, EvaluationContext context)
   {
      if(event.getResponse().isCommitted()) {
         event.setFlow(ServletRewriteFlow.ABORT_REQUEST);
      }
   }
})