portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/gems/src/java/org/apache/portals/gems/browser BrowserPortlet.java DatabaseBrowserPortlet.java
Date Wed, 23 Mar 2005 00:04:39 GMT
taylor      2005/03/22 16:04:39

  Modified:    applications/gems/src/java/org/apache/portals/gems/browser
                        BrowserPortlet.java DatabaseBrowserPortlet.java
  Log:
  don't require Jetspeed to run Database browser portlets
  
  Revision  Changes    Path
  1.7       +2 -1      jakarta-jetspeed-2/applications/gems/src/java/org/apache/portals/gems/browser/BrowserPortlet.java
  
  Index: BrowserPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/gems/src/java/org/apache/portals/gems/browser/BrowserPortlet.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BrowserPortlet.java	2 Feb 2005 00:49:33 -0000	1.6
  +++ BrowserPortlet.java	23 Mar 2005 00:04:39 -0000	1.7
  @@ -130,7 +130,8 @@
           sso = (SSOProvider)context.getAttribute("cps:SSO");
           if (null == sso)
           {
  -           throw new PortletException("Failed to find SSO Provider on portlet initialization");
  +            log.info("Warning: SSO provider not found.");
  +           //throw new PortletException("Failed to find SSO Provider on portlet initialization");
           }        
       }
   
  
  
  
  1.9       +4 -1      jakarta-jetspeed-2/applications/gems/src/java/org/apache/portals/gems/browser/DatabaseBrowserPortlet.java
  
  Index: DatabaseBrowserPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/gems/src/java/org/apache/portals/gems/browser/DatabaseBrowserPortlet.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DatabaseBrowserPortlet.java	2 Feb 2005 00:49:33 -0000	1.8
  +++ DatabaseBrowserPortlet.java	23 Mar 2005 00:04:39 -0000	1.9
  @@ -270,6 +270,9 @@
                   SSOContext credentials = null;
                   try
                   {
  +                    if (sso == null)
  +                        throw new SSOException("SSO Not supported.");
  +                    
                       credentials = sso.getCredentials(getSubject(), ssoURL);
                   }
                   catch(SSOException ssoex)
  
  
  

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


Mime
View raw message