Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-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 D5D88C232 for ; Thu, 1 Jan 2015 18:24:14 +0000 (UTC) Received: (qmail 44831 invoked by uid 500); 1 Jan 2015 18:24:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 44718 invoked by uid 500); 1 Jan 2015 18:24:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 44346 invoked by uid 99); 1 Jan 2015 18:24:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2015 18:24:13 +0000 Date: Thu, 1 Jan 2015 18:24:13 +0000 (UTC) From: "Gary Russell (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NET-566) UnixFTPEntryParser Drops Leading Spaces from File Names 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/NET-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262628#comment-14262628 ] Gary Russell commented on NET-566: ---------------------------------- Yes, I agree it's tricky to change this; it's a little odd to have a file start with a space, but possible, I guess (based on the reporter's issue). Thanks for the pointer to the MLSD/T - I'll take a look at changing our code to use that by default and falling back to LIST if it's not supported. Maybe that's something that could be considered in a future version of the {{FTPClient}} ? > UnixFTPEntryParser Drops Leading Spaces from File Names > ------------------------------------------------------- > > Key: NET-566 > URL: https://issues.apache.org/jira/browse/NET-566 > Project: Commons Net > Issue Type: Bug > Components: FTP > Affects Versions: 3.3 > Environment: OSX client, Linux ftpd > Reporter: Gary Russell > > The {{UnixFTPEntryParser}} [regular expression | http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java?view=markup] (line 106) consumes all spaces between the timestamp and the file name. > The {{FTPFile.name}} property ends up getting a value with stripped leading spaces. > Reported by Spring Integration user at https://jira.spring.io/browse/INT-3591 -- This message was sent by Atlassian JIRA (v6.3.4#6332)