From c19a3d10974a2e1bbacac9c211d119dd13d9dfaa Mon Sep 17 00:00:00 2001 From: Xuan Chen Date: Mon, 11 Feb 2008 15:48:09 +0000 Subject: [PATCH] [218491] fix: ArchiveHandlerManager#cleanUpVirtualPath is messing up the file separators --- .../clientserver/archiveutils/ArchiveHandlerManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services/clientserver/org/eclipse/rse/services/clientserver/archiveutils/ArchiveHandlerManager.java b/rse/plugins/org.eclipse.rse.services/clientserver/org/eclipse/rse/services/clientserver/archiveutils/ArchiveHandlerManager.java index 0a9b599b1b8..32cabd41414 100644 --- a/rse/plugins/org.eclipse.rse.services/clientserver/org/eclipse/rse/services/clientserver/archiveutils/ArchiveHandlerManager.java +++ b/rse/plugins/org.eclipse.rse.services/clientserver/org/eclipse/rse/services/clientserver/archiveutils/ArchiveHandlerManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2007 IBM Corporation and others. + * Copyright (c) 2003, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -16,6 +16,7 @@ * Xuan Chen (IBM) - [194293] [Local][Archives] Saving file second time in an Archive Errors * Xuan Chen (IBM) - [202949] [archives] copy a folder from one connection to an archive file in a different connection does not work * Xuan Chen (IBM) - [160775] [api] rename (at least within a zip) blocks UI thread + * Xuan Chen (IBM) - [218491] ArchiveHandlerManager#cleanUpVirtualPath is messing up the file separators *******************************************************************************/ package org.eclipse.rse.services.clientserver.archiveutils; @@ -366,7 +367,7 @@ public class ArchiveHandlerManager public static String cleanUpVirtualPath(String fullVirtualName) { int j = fullVirtualName.indexOf(VIRTUAL_CANONICAL_SEPARATOR); - if (j == -1 && fullVirtualName.indexOf(":") != -1) return fullVirtualName; //$NON-NLS-1$ + if (j == -1) return fullVirtualName; String realPart = ""; //$NON-NLS-1$ String newPath = fullVirtualName; if (j != -1)