aspose file tools*
The moose likes JForum and the fly likes SSO Anonymous User Posting problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "SSO Anonymous User Posting problem" Watch "SSO Anonymous User Posting problem" New topic
Author

SSO Anonymous User Posting problem

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I wrote my own SSO impl which ties into Atlassian Crowd. The SSO part works: when I'm logged into crowd, and hit the forum it auto logs me in or registers me as needed. I can post and use the forum normally.

However, if I hit the forum without being logged in to crowd, and I click the "new topic" button, instead of getting directed to the login screen of Crowd as I'd expect, I am allowed to enter a new topic, however when I submit it I get the following error:

Caused by: net.jforum.exceptions.DatabaseException: java.sql.SQLException: ERROR: value too long for type character varying(15)


Do I need to do anything special to ensure that anonymous users are sent to the crowd login page before they can try to post?

note: I do have anonymous posting turned off. When I am not using my new SSO class, anonymous users are correctly sent to the JForum login page when they attempt to post.

Ideas?



[originally posted on jforum.net by devon]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I seem to remember that the templates make use of a lot of hard coded user id numbers to deal with anonymous users, e.g., if ( User.id == 1 ) type of logic. This might be part of the problem.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Did you set the sso.redirect property in the SystemGlobals.property file? I suppose, it would solve your problem.
[originally posted on jforum.net by August]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSO Anonymous User Posting problem
 
Similar Threads
Problem with SSO redirect on PM
Webapp Integration -- SSO issues
returnUrl incorrect
Two Forms Mistakenly Shown
Two Forms Mistakenly Shown