From 374a49fcfd9a531459920a70e8b792f08c3d563d Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 18 Sep 2007 10:20:25 +0000 Subject: [PATCH] Java ZipFile code does not cope with entries with lots of consecutive '.' - causes 'Exception when opening ZipFile' within native code. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@472 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/objects/utils/AppDataReference.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uk/ac/vamsas/objects/utils/AppDataReference.java b/src/uk/ac/vamsas/objects/utils/AppDataReference.java index b1cf4f2..db06fa6 100644 --- a/src/uk/ac/vamsas/objects/utils/AppDataReference.java +++ b/src/uk/ac/vamsas/objects/utils/AppDataReference.java @@ -146,13 +146,13 @@ public class AppDataReference { * @param entry base application reference to make unique */ public static String uniqueAppDataReference(VamsasDocument dest,String base) { - String urn = base.replace('/','.').replace('\\','.').replace(':', '_'); + String urn = base.replace('/','_').replace('\\','_').replace(':', '_'); int v = 1; for (int i=0, j=dest.getApplicationDataCount(); i