Jetspeed 2
  1. Jetspeed 2
  2. JS2-1129

JetSpeed hides error if values in SSO-Portlets are specified too long


    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: Security
    • Labels:


      I am trying to use the "SSO Web Content" Portlet to display a website which requires basic authentication. Although all the parameters are specified correctly, I get the error "Could not add remote user: portal principal admin is already associated with a remote user for this site!" displayed when I save the portlet configuration.

      I found out that actually there is a SQL Exception during writing the configuration, but the code just prints out this incorrect error message. Also log-output does not contain any hint of the actual problem.

      Doing some tracing, I found that the problem is caused by the following commit:

      Look at, line 194: The change replaces the "throw" of the actual exception with the dumb error message which effectively hides the actual cause in this case. In my case the error was "Unexpected security error at JetspeedSecurityPersistenceManager from addDomain: OJB operation; SQL []; A truncation error was encountered trying to shrink VARCHAR 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' to length 30.; nested exception is java.sql.SQLDataException: A truncation error was encountered trying to shrink VARCHAR 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' to length 30.

      Please adjust the error-check here to only report the error text if this is the actual cause and report the actual error otherwise.

        Issue Links


          Dominik Stadler created issue -
          Dominik Stadler made changes -
          Field Original Value New Value
          Link This issue relates to JS2-671 [ JS2-671 ]
          Woonsan Ko made changes -
          Assignee Woonsan Ko [ woon_san ]
          Woonsan Ko made changes -
          Fix Version/s 2.2.1 [ 12313443 ]
          Woonsan Ko made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Woonsan Ko made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ate Douma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]


            • Assignee:
              Woonsan Ko
              Dominik Stadler
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: