• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSO Anonymous User Posting problem

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