mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user