Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jforum/jforum.page - What scenarios??

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic