Add note about getCanonicalFile check and fix IdleSession test in test hash sessions
This commit is contained in:
parent
b3043276bc
commit
1a31067369
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue