mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.1 to HEAD
6938: Fix for WCM-864 (bulk import of ZIP containing only directories and no files) 6939: Fix for AWC-1602. Workaround for MSIE7 DOM access methods in Javascript. 6942: Fixed bug in transaction demarcation around the patch service. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -310,7 +310,10 @@ public class ImportWebsiteDialog
|
||||
}
|
||||
finally
|
||||
{
|
||||
ImporterActionExecuter.deleteDir(tempDir);
|
||||
if (tempDir.exists())
|
||||
{
|
||||
ImporterActionExecuter.deleteDir(tempDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
@@ -330,6 +333,7 @@ public class ImportWebsiteDialog
|
||||
ServiceRegistry services = Repository.getServiceRegistry(FacesContext.getCurrentInstance());
|
||||
MimetypeService mimetypeService = services.getMimetypeService();
|
||||
File topdir = new File(dir);
|
||||
if (!topdir.exists()) return;
|
||||
for (File file : topdir.listFiles())
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user