You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by MattyDE <uf...@gmail.com> on 2010/08/05 11:13:14 UTC

Problems RestartResponseAtInterceptPageException and Apache ProxyPass

Hi Folks,

iam actually using a simple login strategy:

getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy()
{
			
			@Override
			public <T extends Component> boolean isInstantiationAuthorized(	Class<T>
componentClass) {
				if (IAuthenticatedWebPage.class.isAssignableFrom(componentClass))
                {
									
					
                    // Is user signed in?
                    if (MySession.get().isLoggedin())
                    {
                        // okay to proceed
                        return true;
                    }					
					
                    // Force sign in                    
                    throw new
RestartResponseAtInterceptPageException(Login.class);
                }
                return true;
			}
			
			@Override
			public boolean isActionAuthorized(Component component, Action action) {
				// TODO Auto-generated method stub 
				return true;
			}
		});

The Tomcat-Webserver is placed behind an Apache with

<IfModule mod_rewrite.c>
    RewriteEngine On
<location /customer-A/matty-GUI>
   ProxyPass http://matty.domain.de:8088/gui
</location>
</IfModule>


So if i browse to https://213.95.x.x:8100/customer-A/matty-GUI/ i will be
"forwarded" to http://matty.domain.de:8088/gui , the AuthorizationStrategy
checks if iam logged in, and if not the Login-Page will be shown.

But than my URL in the browser adresse bar has been changed to
http://matty.domain.de:8088/gui/login ... so the real URL is not more hidden
by the ProxyPass... 

if i deactivate the AuthorizationStrategy in my  Application anything works
fine ... than the url i see is
https://213.95.x.x:8100/customer-A/matty-GUI/... 

I think, in RestartResponseAtInterceptPageException anywhere happens a "full
redirect" by path .. not only with "/" ...

Any hints for fixing this?

thanks a log!
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314607.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problems RestartResponseAtInterceptPageException and Apache ProxyPass

Posted by MattyDE <uf...@gmail.com>.
Iam sorry, after posting i found
https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
so i added

ProxyPassReverse http://matty.domain.de:8088/gui
ProxyPassReverseCookiePath /customer-A/matty-GUI /

to apache-config and it works :)

But now i have the "Problem"/issue that the jsessionid is allways appended
to the url... 
https://213.95.x.x:8100/customer-A/matty-gui/config/packages;jsessionid=9690AA2D86E57B2033B640F3855E73CE

Iam using the wicketstuff-annotation plugin.

Any hints?

Thanks

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314617.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org