Reply To: migration 1.1.0 -> 2.0.0 simultaneous inbound and outbound rewriting problem

Splash Forums Rewrite Users migration 1.1.0 -> 2.0.0 simultaneous inbound and outbound rewriting problem Reply To: migration 1.1.0 -> 2.0.0 simultaneous inbound and outbound rewriting problem

#23682

Are you sure that no outbound rewriting occurs? Is it possible that the outbound address is actually not matching your pattern? It may be possible that you need to include the context-path (or some small difference like this):

.when(Direction.isOutbound()
	       .and(Path.matches(context.getContextPath() + "/{viewId}.jsf")
	       .andNot(Path.matches("{*}javax.faces.resource{*}"))
	))

I would start by adding the rule:

.addRule()
.when(Direction.isOutbound())
.perform(Log.message(Level.INFO, "Rewrite outbound triggered."));

See if this triggers.