Author: jfclere Date: Thu May 6 13:44:15 2010 New Revision: 941722 URL: http://svn.apache.org/viewvc?rev=941722&view=rev Log: make sure the entropy can be converted to a String.
Modified: tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java Modified: tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java?rev=941722&r1=941721&r2=941722&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java (original) +++ tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java Thu May 6 13:44:15 2010 @@ -47,6 +47,7 @@ import org.apache.catalina.Manager; import org.apache.catalina.Session; import org.apache.catalina.mbeans.MBeanUtils; import org.apache.catalina.util.LifecycleMBeanBase; +import org.apache.catalina.util.Base64; import org.apache.tomcat.util.ExceptionUtils; import org.apache.tomcat.util.res.StringManager; import org.apache.juli.logging.Log; @@ -399,7 +400,7 @@ public abstract class ManagerBase extend ExceptionUtils.handleThrowable(t); } if (apr) { - setEntropy(new String(result)); + setEntropy(new String(Base64.encode(result))); } else { setEntropy(this.toString()); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org