jQuery in Action, 2nd edition*
The moose likes JForum and the fly likes jforum/jforum.page  - What scenarios?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "jforum/jforum.page  - What scenarios??" Watch "jforum/jforum.page  - What scenarios??" New topic
Author

jforum/jforum.page - What scenarios??

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi

Jforum rocks.......Thanks to all great dev team and forum supporters

When ever i try to repost within a short span of time, Jforum shows the following error message.

You cannot post a new message so soon. Please wait some time and try again.

and i see the URL as http://localhost:8080/jforum/jforum.page

Does jforum redirect to this URL whenever there is any validation issue?


When i tried to have a single war with both main application and Jforum inside, i couldnt create topics,reply messages as Jforum is redirecting the user to this URL. Please let me know why this happens in case of single war alone? In double war it works fine.

Thanks
Greg
[originally posted on jforum.net by gregjhonson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You're mixing "exception" situations here. There is the situation you need to be logged in to post and the situation that you're triggering the "flood" posting code.

With the need to be logged in, the code uses the rules in the ViewCommons.contextToLogin method. This gets called from various methods that do security checks.

Basicially, this method tests to see if the authentication.type" config option is set to sso" and if the sso.redirect config property set. It the two of these are true, then the sso.redirect property value is used (with an added parameter named"returnUrl" that has the original URL requested).

In the case of "flood" protection (e.g., malicious users trying to flood a forum with an automatic poster), this is handled by the PostAction.insertSave method. This is based on the value of the posts.new.delay config property (0 or less disable is). If the time between posts is too short, this basically calls the insert method which should redisplay the post form.
[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jforum/jforum.page - What scenarios??