From: jprocter Date: Tue, 18 Sep 2007 10:20:25 +0000 (+0000) Subject: Java ZipFile code does not cope with entries with lots of consecutive '.' - causes... X-Git-Tag: Release_0.2~48 X-Git-Url: http://source.jalview.org/gitweb/?p=vamsas.git;a=commitdiff_plain;h=374a49fcfd9a531459920a70e8b792f08c3d563d 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 --- 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