Hello,
I have recently migrated my wicket app from 1.4 to 7.
Problem:
Page versioning is generating redirect loop for F5 load balancer monitoring.
Background:
We have F5 load balancer monitor running every few seconds to check 200 OK
from host/app/login for application availability monitoring. This worked
fine with 1.4 but, it is going into redirect loop after migration to Wicket
7 as 7 uses page versioning and host/app/login request from application
comes back with 302 Moved temporarily header since Wicket 7 is appending
page Id '?#' after login. 1.4 was also using page versioning but page Id
was not appended, and so F5 monitor was getting 200 OK from wicket.
In 1.4 I was using mountBookmarkablePage("login", Login.class).
In 7, I am using mountPage("/login", Login.class).
I understand that page versioning is due to the fact that the page is
stateful. But as we have modal window(password management - expired, will
expire soon type of functionality) and some Ajax links on the login page, I
can't make it stateless at this moment to avoid page versioning.
For now, I am using static jsp page (index.jsp) under WebContent without
any redirect to bring 200 OK to F5 load balancer monitor. I don't want 302
to be treated like '200 OK' as it could be returned for different reasons.
I tried setVersioned(false) but not luck; I assume this is due to the fact
that my page containing stateful components (ajax link, modal etc).
Knowing that I 'cannot' convert my login page to stateless at this moment,
is there any way I could still make F5 monitor work with login page? Has
anybody experienced similar situation before?
Thanks in advance,
-Mihir.