This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

SSO Anonymous User Posting problem

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Tell me how it all turns out. Here is a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic