I now spent some time on it, and simply said, the whole wicket-1.5
migration in context of URL handling and Protocol-forcing is quite a
mess;
Current main problem is in SwitchProtocolReqestHandler in
org.brixcms.web, where respond(IrequestCycle requestCycle) is
basically an out-commented stub and non working - to get it work, one
needs to access the current requestCycle.getProcessor() that no longer
exists in wicket 1.5; Beside this, the BrixRequestCycleProcessor is
now more an Processor but merely an AbstractRequestCycleListener where
the required HTTPSConfig is never preserved - as the new parent class
don't know this anymore.
What we need is basically a complete rewrite of it - so a new
BrixRequestCycleListener that gets attached to the BrixInstance and
can care for the RequestCycle using an Listener when we load the
content to decide if we need a switch in Protocol (this can't be
easily checked on URL construction unless we cache every URL and its
Protocol required needs as we can't afford to precheck all links to
brix-pages on all tile levels as this means we need to preload nearly
every page that is linked to);
The need for Protocol Switch can be gained by checking the BrixNode
for the current URL for getRequiredProtocol() as this is either an
resource that says nothing special or an AbstractContainer that checks
its complete tile levels for required protocol using requiresSSL() via
tileManager;
So the rewrite shouldn't be too hard, however, I don't really now how
wicket 1.5 handles everything so I kindly wanted to ask Martin G. or
Igor to at least tell me what to do. Beside this, it is also necessary
that we implement this in a way that allows us to let the enduser
bound another Listener to his wicket programm so he can at least force
SSL onto the admin page etc. as brix's strength is defined to allow
easy integration into wicket apps;
Best
Korbinian