portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Resolved: (JS2-1129) JetSpeed hides error if values in SSO-Portlets are specified too long
Date Wed, 31 Mar 2010 18:03:27 GMT

     [ https://issues.apache.org/jira/browse/JS2-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko resolved JS2-1129.
-----------------------------

    Resolution: Fixed

Fixed.

Increased the column size of DOMAIN_NAME of SECURITY_DOMAIN table to 254, which is the same
size of NAME of SSO_SITE.
The SSOManager service component has allowed to create a domain with the same name of sso
site for the principal.
So, sso related portlets uses the url for the name in this implicit addition.
Therefore, the column size of DOMAIN_NAME must have been the same size of NAME of SSO_SITE.
Also, added the detailed message of the root exception cause on unexpected errors in the sso
portlets.

> JetSpeed hides error if values in SSO-Portlets are specified too long
> ---------------------------------------------------------------------
>
>                 Key: JS2-1129
>                 URL: https://issues.apache.org/jira/browse/JS2-1129
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.2.0
>            Reporter: Dominik Stadler
>            Assignee: Woonsan Ko
>            Priority: Critical
>             Fix For: 2.2.1
>
>
> 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: http://mail-archives.apache.org/mod_mbox/portals-jetspeed-dev/200905.mbox/%3C20090501033954.14ADF23888A4@eris.apache.org%3E
> Look at SSOWebContentPortlet.java, 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message