Add note about getCanonicalFile check and fix IdleSession test in test hash sessions

This commit is contained in:
Jesse McConnell 2013-01-25 16:25:59 -06:00
parent b3043276bc
commit 1a31067369
2 changed files with 14 additions and 5 deletions

View File

@ -437,7 +437,9 @@ public class HashSessionManager extends AbstractSessionManager
/* ------------------------------------------------------------ */
public void setStoreDirectory (File dir) throws IOException
{
{
// CanonicalFile is used to capture the base store directory in a way that will
// work on Windows. Case differences may through off later checks using this directory.
_storeDir=dir.getCanonicalFile();
}

View File

@ -72,10 +72,17 @@ public class IdleSessionTest
@Override
public SessionManager newSessionManager()
{
HashSessionManager manager = (HashSessionManager)super.newSessionManager();
manager.setStoreDirectory(_storeDir);
manager.setIdleSavePeriod(_idlePeriod);
return manager;
try
{
HashSessionManager manager = (HashSessionManager)super.newSessionManager();
manager.setStoreDirectory(_storeDir);
manager.setIdleSavePeriod(_idlePeriod);
return manager;
}
catch ( IOException e)
{
return null;
}
}