Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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]
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic