Fix to handle .acp files which have been updated with via a zip tool.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2180 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-01-23 18:51:32 +00:00
parent cc60741883
commit 2a897f877d

View File

@@ -122,7 +122,14 @@ public class ACPImportPackageHandler
ZipEntry zipEntry = zipFile.getEntry(content); ZipEntry zipEntry = zipFile.getEntry(content);
if (zipEntry == null) if (zipEntry == null)
{ {
throw new ImporterException("Failed to find content " + content + " within zip package"); // Note: for some reason, when modifying a zip archive the path seperator changes
// TODO: Need to investigate further as to why and whether this workaround is enough
content = content.replace('\\', '/');
zipEntry = zipFile.getEntry(content);
if (zipEntry == null)
{
throw new ImporterException("Failed to find content " + content + " within zip package");
}
} }
try try