The last few days, when a user logs in, but doesn't have their own psml file,
the default was not being used. The existance of the local file url was never
checked until it was too late. I've created a simple patch that restores the
correct behavior. I know there is a lot of changes going on so I don't know
if someone has this fixed but not committed yet... Anyway here you go...
Index: PortletFactory.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/factory/PortletFactory.java,v
retrieving revision 1.69
diff -u -r1.69 PortletFactory.java
--- PortletFactory.java 2000/04/26 23:30:10 1.69
+++ PortletFactory.java 2000/04/28 18:58:40
@@ -172,6 +172,10 @@
try {
url.append(user.getUserName()).append(".psml");
DiskCacheEntry pde = JetspeedDiskCache.getInstance().getEntry(
url.toString() );
+ if (!pde.getFile().exists())
+ {
+ throw(new Exception("no user specific portlet definition
found"));
+ }
} catch (Exception e) {
Log.note("no user specific portlet definition found, reverting to
default");
url= new StringBuffer(JetspeedResources.getInstance().getString(
JetspeedResources.PSML_BASE_URL_KEY ))
@@ -356,10 +360,6 @@
if (this.portlets == null) {
this.portlets = new Portlets();
}
-
-
-
-
}
/**
Jeffrey D. Brekke
mailto:[EMAIL PROTECTED]
http://sites.netscape.net/ekkerbj/homepage
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]