Re: [appfuse-user] Acegi bypass

2007-10-22 Thread Lee Meador
There used to be a bug in the PDF plugin for IE. To get around it you had to do something like set the content length right at the start. You might want to search the web for that. It would also, as I remember, make the browser ask for the PDF twice and ignore the first time. -- Lee Meador On 10/

Re: [appfuse-user] Acegi bypass

2007-10-22 Thread Michael Horwitz
According to the javadoc for HttpServletRequest getRemoteHost() gives you: Returns the fully qualified name of the client that sent the request. By the sounds of it this is not what you were looking for? Hence it worked on local host, but not a remote machine I think the method you are looki

Re: [appfuse-user] Acegi bypass

2007-10-22 Thread John Kwon
Problem solved. I'm just returning the URL to the PDF file, no controller. Put in a bypass for ROLE_ANONYMOUS for /**/*.pdf That, and I have the Tomcat host address in a properties file now. Never trust getRemoteHost()... it doesn't always return a true address for the Tomcat host.

Re: [appfuse-user] Acegi bypass

2007-10-21 Thread John Kwon
I think I'm going to make a tiny servlet to hand up the pdf, and define it in my web.xml, and put in the acegi bypass, and take out the controller for the pdf. On 10/21/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > Unfortunately, I don't know the solution to your problem as I've never > dealt wit

Re: [appfuse-user] Acegi bypass

2007-10-21 Thread Matt Raible
Unfortunately, I don't know the solution to your problem as I've never dealt with something like this. I'm sure it's something small though - likely something that'll take you days to find and seconds to fix. ;-) Matt On 10/21/07, John Kwon <[EMAIL PROTECTED]> wrote: > The controller for the outs

Re: [appfuse-user] Acegi bypass

2007-10-21 Thread John Kwon
The controller for the outside page (the page that contains the IFrame) has a backing bean that has an attribute that contains a URL that is built before the outside page opens (it's in the outside page controller). I use getRemoteHost() to build the URL, so it should be fine no matter what machin

Re: [appfuse-user] Acegi bypass

2007-10-21 Thread Matt Raible
I would use something like Firebug or another tool that allows you to see the URLs requested. Since Acegi is URL-based, I don't know why it would work locally, but not when accessing the application from a different machine. What happens if you use the fully-qualified domain name of your machine in

[appfuse-user] Acegi bypass

2007-10-21 Thread John Kwon
I have a PDF that is put up by a controller I wrote (it puts the pdf right on the response stream, and I set the content-type as pdf). I also specify that this is an attachment, so I am presuming that it won't open the PDF in a new window - the controller is called by a url that is in an IFRAME.

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Thanks. seems to fixed it. ;) On 3/8/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > > /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user Regitration? -- Ealden Esto E. Escañan Software Engineer Orange and Bronze Software Labs, Ltd.

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Ealden Esto E. Escañan
On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user Regitration? -- Ealden Esto E. Escañan Software Engineer Orange and Bronze Software Labs, Ltd. Co. Web: http://software.orangeandbronze.com Email : [EMAIL PROTECTED] Blog : http://bl

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
FYI, I'm using 1.9.4 + webwork On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: > > Hi Richard, > > On 3/6/07, R

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
thanks for the reply heres my filter chain proxy... CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,r

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread tdahlke
Make sure you still have the anonymous filter: and that it's still being called in the filter chain: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /images/**=#NONE#

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Hi Matt, Here... PATTERN_TYPE_APACHE_ANT /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user /clickstreams.jsp*=admin /flushCache.*=admin /passwordHint.html*=ROLE_ANONYMOUS,admin,user

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Matt Raible
Can you post your configuration? You might want to make sure the rule is at the top of the list. Matt On 3/7/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Est

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: Hi Richard, On 3/6/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > Hi All, > > Please advise on how I can expose a u

Re: [appfuse-user] Acegi Bypass

2007-03-06 Thread Richard G. Reyes
Thanks! It worked. Richard On 3/6/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: Hi Richard, On 3/6/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > Hi All, > > Please advise on how I can expose a url, I have to save the information > passed into the url into the db but does not need t

Re: [appfuse-user] Acegi Bypass

2007-03-06 Thread Ealden Esto E. Escañan
Hi Richard, On 3/6/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, Please advise on how I can expose a url, I have to save the information passed into the url into the db but does not need the users to login to access the url. sample url http://www.domain.com/Iwashere.html?code=10002

[appfuse-user] Acegi Bypass

2007-03-05 Thread Richard G. Reyes
Hi All, Please advise on how I can expose a url, I have to save the information passed into the url into the db but does not need the users to login to access the url. sample url http://www.domain.com/Iwashere.html?code=100023 I need to save the code value just to record that the url have been