Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread Dale Newfield
"kkus" <[EMAIL PROTECTED]> wrote: > In that listner, what is general > problem if I provide a HashMap to > store username and login count > when login fails, and clear HashMap > for that user when login suceeds? Forcing every login attempt for the entire application to synchronize on a single dat

Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread Matt Raible
The commented out gives you the exact error message. The reason we don't use it is because we don't want to tell users that they have an invalid username (or password). A generic "authentication failed" message is generally better from a security standpoint. Matt On 11/30/06, kkus <[EMAIL PRO

Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread kkus
Now I am implementing account lock feature. I can find message generated from Acegi as below after I failed to login 3 times, [appfuse] WARN [http-8080-Processor25] LoggerListener.onApplicationEvent(55) | Authentication event AuthenticationFailureLockedEvent: a; details: [EMAIL PROTECTED]: Remote

Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread Matt Raible
I don't see a problem with this solution if it works. That's the most important thing after all. ;-) Matt On 11/30/06, kkus <[EMAIL PROTECTED]> wrote: In that listner, what is general problem if I provide a HashMap to store username and login count when login fails, and clear HashMap for that

Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread kkus
In that listner, what is general problem if I provide a HashMap to store username and login count when login fails, and clear HashMap for that user when login suceeds? Thanks! Matt Raible-3 wrote: > > If believe Acegi allows you to control this, but unfortunately, I > don't know the configurati

Re: [appfuse-user] Database connection failure

2006-11-30 Thread Matt Raible
On 11/30/06, John Allerdyce <[EMAIL PROTECTED]> wrote: Hi, In Appfuse, when the database connection fail to establish, the whole webapp will fail to initialize. And when user hits http://localhost:8080/testapp/index.jsp , he will get an Tomcat error page. Can I change it so that AppFuse will st

[appfuse-user] Database connection failure

2006-11-30 Thread John Allerdyce
Hi, In Appfuse, when the database connection fail to establish, the whole webapp will fail to initialize. And when user hits http://localhost:8080/testapp/index.jsp, he will get an Tomcat error page. Can I change it so that AppFuse will still come up despite DB connection fail to establish? And

Re: [appfuse-user] locking account afer several tries of login

2006-11-30 Thread Matt Raible
If believe Acegi allows you to control this, but unfortunately, I don't know the configuration settings. Matt On 11/30/06, kkus <[EMAIL PROTECTED]> wrote: I went to acegi forum about this issue and found it seems we have to create a field in db to store attempted tries of failing login - mainl

[appfuse-user] locking account afer several tries of login

2006-11-30 Thread kkus
I went to acegi forum about this issue and found it seems we have to create a field in db to store attempted tries of failing login - mainly since at that point we don't have any session yet. I am wondering if there is another way to keep record of failing login. Sample code which I have done is

Re: [appfuse-user] how to use hibernate.criterion.Example to getUsers() regardless of "enabled" field

2006-11-30 Thread thinkboy
thanks Luiz, anyway, I just discovered the root cause, in fact, Spring's hibernate template does not support excludeProperty method.. etc. just use hibernate's API , the following code is working fine! == my correct code== public List getUsers(User user) { Example ex =

Re: [appfuse-user] how to use hibernate.criterion.Example to getUsers() regardless of "enabled" field

2006-11-30 Thread Luiz Fernando Rodrigues
I believe you can use the type Boolean in your class instead of primitive values. This will solve the problem because you can set the property as null if you don't want to consider it. Luiz On 11/30/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote: hi, I am trying to use hibernate.criterion.Example

Re: [appfuse-user] Building appfuse application

2006-11-30 Thread Matt Raible
Yep - that's the change I made in Subversion: http://tinyurl.com/v2nsk Matt On 11/30/06, John Allerdyce <[EMAIL PROTECTED]> wrote: It turns out that I just need to comment out the 'Tomcat' task block in build.xml. and I am able to execute 'ant package-web' in a machine with no tomcat. Thank y

Re: [appfuse-user] Building appfuse application

2006-11-30 Thread John Allerdyce
It turns out that I just need to comment out the 'Tomcat' task block in build.xml. and I am able to execute 'ant package-web' in a machine with no tomcat. Thank you. On 11/29/06, Matt Raible <[EMAIL PROTECTED]> wrote: You should be able to search FishEye (URL below) for "build.xml". Matt On

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread Matt Raible
I'll look into it now. Matt On 11/30/06, thinkboy <[EMAIL PROTECTED]> wrote: i believed u have installed subversion plug-in for jira. however, in my jira view I only have 3 tabs(no subversion): All CommentsChange History any permission config? Matt Raible-3 wrote: >

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread thinkboy
i believed u have installed subversion plug-in for jira. however, in my jira view I only have 3 tabs(no subversion): All CommentsChange History any permission config? Matt Raible-3 wrote: > > http://issues.appfuse.org/browse/APF-537?page=com.cenqua.fisheye.jira

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread Matt Raible
http://issues.appfuse.org/browse/APF-537?page=com.cenqua.fisheye.jira:fisheye-tabpanel On 11/30/06, thinkboy <[EMAIL PROTECTED]> wrote: thanks for help but I could not locate the "FishEye" link in JIRA. pls advise Matt Raible-3 wrote: > > I've created an issue for this and have checked in th

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread thinkboy
thanks for help but I could not locate the "FishEye" link in JIRA. pls advise Matt Raible-3 wrote: > > I've created an issue for this and have checked in the fix. > > http://issues.appfuse.org/browse/APF-537 > > If you click on the "FishEye" link in JIRA, you should see the changes I > made.

[appfuse-user] how to use hibernate.criterion.Example to getUsers() regardless of "enabled" field

2006-11-30 Thread Man-Chi Leung
hi, I am trying to use hibernate.criterion.Example to find User by Example this following code will only get all users which username="myuser" & enabled="false" NOT all user regardless enabled = true or false bcos when invokes 'new User("myuser")' , user.enabled will be initialized by con

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread Matt Raible
I've created an issue for this and have checked in the fix. http://issues.appfuse.org/browse/APF-537 If you click on the "FishEye" link in JIRA, you should see the changes I made. Matt On 11/30/06, thinkboy <[EMAIL PROTECTED]> wrote: hi matt, sorry to trouble. i looked at /test/web/...weba

Re: [appfuse-user] remember me question

2006-11-30 Thread Matt Raible
On 11/30/06, kkus <[EMAIL PROTECTED]> wrote: With that link(http://demo.appfuse.org/appfuse/login.jsp), I tested in both FireFox 2.0 and IE6/7 in XP SP2 and got the same result - login page is still shown with ALL menus. Before I tested I deleted all cookies in FF and IE. Then I went to that pa

Re: [appfuse-user] remember me question

2006-11-30 Thread kkus
With that link(http://demo.appfuse.org/appfuse/login.jsp), I tested in both FireFox 2.0 and IE6/7 in XP SP2 and got the same result - login page is still shown with ALL menus. Before I tested I deleted all cookies in FF and IE. Then I went to that page which showed me TWO menus. I logined in wit

Re: [appfuse-user] Need PostgreSQL to MYSQL convertor

2006-11-30 Thread Matt Raible
If you're using AppFuse, you should be able to use DbUnit to export from one database and import to another. To export, run "ant db-export", copy the generated file to metadata/sql/sample-data.xml and then import to your new database using db-load. Matt On 11/30/06, Yesh <[EMAIL PROTECTED]> wro

Re: [appfuse-user] compressionFilter and other filters

2006-11-30 Thread Matt Raible
Most of the filters are necessary for certain functionality. However, the CompressionFilter is certainly optional. We are moving to EhCache's GZipFilter for 2.0, so that should be better. However, there's no harm in removing it altogether. I would recommend you configure GZip compression in Ap

[appfuse-user] Need PostgreSQL to MYSQL convertor

2006-11-30 Thread Yesh
Hi, I am in need of a free software for converting my postgreSQL schema to MYSQL schema. -- View this message in context: http://www.nabble.com/Need-PostgreSQL-to-MYSQL-convertor-tf2731101s2369.html#a7617778 Sent from the AppFuse - User mailing list archive at Nabble.com. -

[appfuse-user] compressionFilter and other filters

2006-11-30 Thread kelmo
I'm trying to figure up what each filter (in web.xml) exists for. Is there any doc about all the filters appFuse includes or should I go to each web page to see them? In particular, we are having problems with compressionFilter in WAS6.1 a large HTML page has failed (it seems to be truncated) and

Re: [appfuse-user] how to apply the Open Session in View pattern in appfuse?

2006-11-30 Thread thinkboy
hi matt, sorry to trouble. i looked at /test/web/...webapp.action/BaseControllerTestCase which actually extend from junit's TestCase. and by default in appfuse, all spring mvc controller testcases extend from BaseControllerTestCase so how can i extend AbstractTransactionalDataSourceSpringCont