RE: ProfiledPageContext caching
Scott/David, So I have added the CastorXmlPageManager to the underlying FileCache listeners and have managed some degree of success in reaping the page context caches. However, I am trying to optimize the operation of CastorXmlPageManager cache eviction by using the last accessed time of the FileCacheEntry and comparing that to the page context creation times in the cache. The idea is to eliminate the complete dumping of the cache without performing complex dependency tracking and tests. Anyway, I am not sure if the approach is sound or not yet, but it appears that the last accessed time of the cache elements is not being updated when elements are referenced. Obviously, my algorithm relies on this happening and it would seem that the LRU features of the FileCache require this information as well. I thought I'd check to see if you had any input or insight into this before I went ahead and had the various page manager documents and associated handlers set the last access times. I do not plan to support fine grain access tracking. Instead, I was just going to register PageManager level accesses; in other words, I was not going to consider rendering of a page or navigational document to be an access. Thoughts? Randy
cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security AuthenticationProviderProxy.java
dlestrat2004/10/16 15:30:31 Modified:components/security/src/java/org/apache/jetspeed/security/impl UserManagerImpl.java AuthenticationProviderProxyImpl.java components/security/src/java/org/apache/jetspeed/security AuthenticationProviderProxy.java Log: Adding support for creating user in specified authentication provider. Also, added comment to permission manager. Clarification. Revision ChangesPath 1.14 +14 -2 jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserManagerImpl.java Index: UserManagerImpl.java === RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserManagerImpl.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- UserManagerImpl.java 11 Oct 2004 23:25:29 - 1.13 +++ UserManagerImpl.java 16 Oct 2004 22:30:31 - 1.14 @@ -124,6 +124,18 @@ ArgUtil.notNull(new Object[] { username, password }, new String[] { "username", "password" }, "addUser(java.lang.String, java.lang.String)"); +addUser(username, password, atnProviderProxy.getDefaultAuthenticationProvider()); +} + +/** + * @see org.apache.jetspeed.security.UserManager#addUser(java.lang.String, + * java.lang.String, java.lang.String) + */ +public void addUser(String username, String password, String atnProviderName) throws SecurityException +{ +ArgUtil.notNull(new Object[] { username, password, atnProviderName }, new String[] { "username", "password", "atnProviderName"}, +"addUser(java.lang.String, java.lang.String, java.lang.String)"); + // Check if user already exists. if (userExists(username)) { @@ -146,7 +158,7 @@ atnProviderProxy.setUserPrincipal(userPrincipal); // Set security credentials PasswordCredential pwdCredential = new PasswordCredential(username, password.toCharArray()); -atnProviderProxy.setPrivatePasswordCredential(null, pwdCredential); +atnProviderProxy.setPrivatePasswordCredential(null, pwdCredential, atnProviderName); if (log.isDebugEnabled()) { log.debug("Added user: " + fullPath); 1.2 +10 -0 jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/AuthenticationProviderProxyImpl.java Index: AuthenticationProviderProxyImpl.java === RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/AuthenticationProviderProxyImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AuthenticationProviderProxyImpl.java 11 Oct 2004 23:25:29 - 1.1 +++ AuthenticationProviderProxyImpl.java 16 Oct 2004 22:30:31 - 1.2 @@ -68,7 +68,17 @@ credentialHandlers.add(((AuthenticationProvider) authenticationProviders.get(i)).getCredentialHandler()); } } + + +/** + * @see org.apache.jetspeed.security.AuthenticationProviderProxy#getDefaultAuthenticationProvider() + */ +public String getDefaultAuthenticationProvider() +{ +return this.defaultAuthenticationProvider; +} + /** * @see org.apache.jetspeed.security.spi.UserSecurityHandler#getUserPrincipal(java.lang.String) */ 1.2 +9 -0 jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/AuthenticationProviderProxy.java Index: AuthenticationProviderProxy.java === RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/AuthenticationProviderProxy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AuthenticationProviderProxy.java 11 Oct 2004 23:25:29 - 1.1 +++ AuthenticationProviderProxy.java 16 Oct 2004 22:30:31 - 1.2 @@ -28,6 +28,15 @@ { /** * + * Returns the default authentication provider. + * + * + * @return The default authentication provider. + */ +String getDefaultAuthenticationProvider(); + +/** + * * Sets user principal in a given authentication provider. * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security PermissionManager.java UserManager.java
dlestrat2004/10/16 15:29:51 Modified:jetspeed-api/src/java/org/apache/jetspeed/security PermissionManager.java UserManager.java Log: Adding support for creating user in specified authentication provider. Also, added comment to permission manager. Clarification. Revision ChangesPath 1.3 +4 -0 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java Index: PermissionManager.java === RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PermissionManager.java28 Sep 2004 04:23:52 - 1.2 +++ PermissionManager.java16 Oct 2004 22:29:51 - 1.3 @@ -26,6 +26,10 @@ * access entitlement on specified resources. * * + * The permission manager does not enforce any hierarchy resolution, all relevant + * principals must be passed to the permission manager to assess the proper permissions. + * + * * For instance: * * 1.4 +13 -0 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/UserManager.java Index: UserManager.java === RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/UserManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- UserManager.java 19 Sep 2004 19:04:11 - 1.3 +++ UserManager.java 16 Oct 2004 22:29:51 - 1.4 @@ -49,6 +49,19 @@ * @throws Throws a security exception. */ void addUser(String username, String password) throws SecurityException; + +/** + * + * Add a new user provided a username and password in the specified authentication + * provider store. + * + * + * @param username The user name. + * @param password The password. + * @param atnProviderName The authentication provider name. + * @throws Throws a security exception. + */ +void addUser(String username, String password, String atnProviderName) throws SecurityException; /** * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
various startup items
Hi everyone, just a few quick questions. I can't get jetspeed 2 to build from the current CVS, and I can't seem to locate a release anywhere in the mirror system. So: 1. Are there any binary releases of jetspeed 2 available? Documentation suggests they would be found in the portals directory in the apache mirror system. The only project there is pluto. They are different projects, right? Also, the jetspeed 1 project is not found there either, but under jakarta/jetspeed. Alternatively: 2. Instead of finding a release I did a checkout from cvs, but the maven allBuild is currently broken (something related to ant.jar and a zipfile including itself). I'm just getting my feet wet with maven, and am having quite a time trying to trace things back to where the error is actually occurring. I'm interested in learning maven, but it seems to me that a lot of other people who are just getting the current CVS snapshot are going to have the same problem I'm having (the error message from yesterday, if I understand it, was that a goal was missing in the /portal/maven.xml... I updated and today a zipfile is apparently trying to include itself..). The error was, specifically: BUILD FAILED File.. file:/C:/usr/data/dev/cvs/jakarta-jetspeed-2/ Element... maven:reactor Line.. 144 Column 40 Unable to obtain goal [war:war] -- file:/C:/Documents and Settings/Michael/.maven/plugins/maven-war-plugin-1.4-SNAPSHOT/:45:23: A zip file cannot include itself Total time: 2 minutes 16 seconds So... I realize I might be missing something here, but I've spent a few hours trying to trace through stuff that I don't yet fully understand, and I'm pretty sure that other people must be having the same headaches. Any suggestions? Thanks in advance, Mike
[wrong list- ignore]-Re: What next?
sorry everyone, wrong list david jencks On Oct 15, 2004, at 11:54 PM, David Jencks wrote: jta all pass except for those needing transaction timeout to work. I'll implement that, and maybe update our use of howl. Then what? thanks david jencks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build failure
Thanks Jag. That took care of my problem. - Original Message - From: "Jaq Marit" <[EMAIL PROTECTED]> To: "Jetspeed Developers List" <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 2004 4:34 AM Subject: Re: build failure > From your log, it seems that the compiler is having problems with your tomcat > installation. Try installing tomcat in a path without spaces (e.g., > c:\tomcat5) > This is a problem with long filenames containing spaces. > > [echo] Compiling to C:\Tomcat > 5.0\webapps\jakarta-jetspeed-2\jetspeed-api/target/classes > [javac] Compiling 164 source files to C:\Tomcat > 5.0\webapps\jakarta-jetspeed-2\jetspeed-api\target\classes > [javac] javac: invalid flag: C:\Tomcat > [javac] Usage: javac > [javac] where possible options include: > [javac] -g Generate all debugging info > > > Quoting sree <[EMAIL PROTECTED]>: > > > I realized after I sent this email that there wasn't enough info. Anyway, > > listed below is the complete log. Thanks for all your help. > > ... > > > > > This message was sent using IMP, the Internet Messaging Program. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What next?
jta all pass except for those needing transaction timeout to work. I'll implement that, and maybe update our use of howl. Then what? thanks david jencks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]