Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CF3618D28 for ; Thu, 19 Nov 2015 07:42:11 +0000 (UTC) Received: (qmail 34492 invoked by uid 500); 19 Nov 2015 07:42:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 34469 invoked by uid 500); 19 Nov 2015 07:42:11 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 34407 invoked by uid 99); 19 Nov 2015 07:42:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2015 07:42:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ED6F72C1F5F for ; Thu, 19 Nov 2015 07:42:10 +0000 (UTC) Date: Thu, 19 Nov 2015 07:42:10 +0000 (UTC) From: "Sergey Shakhnazarov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-8609) File-Transfer download to subfolder on Windows causes a FileProxy exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shakhnazarov updated CB-8609: ------------------------------------ Labels: no-repro triaged windows (was: triaged windows) > File-Transfer download to subfolder on Windows causes a FileProxy exception > --------------------------------------------------------------------------- > > Key: CB-8609 > URL: https://issues.apache.org/jira/browse/CB-8609 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer > Environment: Windows 8.1 desktop > Reporter: Gary Howard > Labels: no-repro, triaged, windows > > The nativeURI passed into FileProxy.resolveLocalFileSystemURI by FileTransfer.downloadOperation contains a Windows \ that causes the validName check to fail. As the fail function passed is null this gives an exception. > The FileTransfer.downloadOperation for Windows has a line of code that converts the storageFile.path to a nativeURL and part of this is to convert Windows \ to /. Unfortunately it only replaces the first one which is not enough when the path contains sub-folders. The fix is to use .replace(/\\/g, '/') instead of .replace('\\', '/'). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org