Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-30 Thread Jonathan Barker
Ryan, You may want to vote for: https://issues.apache.org/jira/browse/TAP5-167 Jonathan On Fri, May 22, 2009 at 11:32 PM, kartweel wrote: > > Hi, > > I basically want to switch off tapestry's auto switching between secure and > non-secure and keep it in the same "mode" as the current request

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-23 Thread kartweel
Cheers, I changed this to return null instead too. public String getBaseURL(String pageName) { return baseURLSource.getBaseURL(request.isSecure()); } Ryan Inge Solvoll-2 wrote: > > This should do the trick :) > > You can probably do the same thing more intuitively by advising the >

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-23 Thread Inge Solvoll
Haven't tested this one, but it looks simple and ok to me. public static void adviseRequestSecurityManager(MethodAdviceReceiver receiver, final Request request, final BaseURLSource baseURLSource, Logger log) { try { Method checkForInsecureRequest = receiver.getInterface().getMethod("ch

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-22 Thread Inge Solvoll
This should do the trick :) You can probably do the same thing more intuitively by advising the RequestSecurityManager. I just didn't bother to change my working implementation. public static void contributeAlias(Configuration configuration, @InjectService("Request") Request request, @InjectServi

Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-22 Thread kartweel
Hi, I basically want to switch off tapestry's auto switching between secure and non-secure and keep it in the same "mode" as the current request instead of generating full URLs and changing it to http. I need internal access via http or https and external access firewalled to allow https only. I