File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes jforum/  - 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/  - What scenarios??" Watch "jforum/  - What scenarios??" New topic

jforum/ - What scenarios??

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

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/

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.

[originally posted on by gregjhonson]
Migrated From
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 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 by monroe]
I agree. Here's the link:
subject: jforum/ - What scenarios??
It's not a secret anymore!