Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 70144 invoked from network); 13 Sep 2009 12:38:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Sep 2009 12:38:21 -0000 Received: (qmail 5807 invoked by uid 500); 13 Sep 2009 12:38:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 5687 invoked by uid 500); 13 Sep 2009 12:38:20 -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 5597 invoked by uid 99); 13 Sep 2009 12:38:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Sep 2009 12:38:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Sep 2009 12:38:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 588A7234C052 for ; Sun, 13 Sep 2009 05:37:58 -0700 (PDT) Message-ID: <434620816.1252845478359.JavaMail.jira@brutus> Date: Sun, 13 Sep 2009 05:37:58 -0700 (PDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (NET-294) UnixFTPEntryParser fails to parse some entries In-Reply-To: <297526227.1252775817511.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NET-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated NET-294: --------------------- Description: The regex does match the entry but the resulting groups are wrong for exemple, with {code} -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img {code} the unix group name group will match "ftp-admin 816026400 Oct" file size group will match "5" first date group will match "2008 bloplab" then the year group will match "7" and the file name group will match "cd1.img" in this listing : {code} -rwxrwx--- 1 ftp ftp-admin 771 Oct 5 2008 bloplab 7 cd1.ccd -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd1.cue -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img -rwxrwx--- 1 ftp ftp-admin 33307200 Oct 5 2008 bloplab 7 cd1.sub -rwxrwx--- 1 ftp ftp-admin 772 Oct 5 2008 bloplab 7 cd2.ccd -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd2.cue -rwxrwx--- 1 ftp ftp-admin 413902608 Oct 5 2008 bloplab 7 cd2.img -rwxrwx--- 1 ftp ftp-admin 16893984 Oct 5 2008 bloplab 7 cd2.sub {code} the 4 entries in which groupname and file size are only separated by one space wont be parsed properly, the others work was: The regex does match the entry but the resulting groups are wrong for exemple, with -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img the unix group name group will match "ftp-admin 816026400 Oct" file size group will match "5" first date group will match "2008 bloplab" then the year group will match "7" and the file name group will match "cd1.img" in this listing : -rwxrwx--- 1 ftp ftp-admin 771 Oct 5 2008 bloplab 7 cd1.ccd -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd1.cue -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img -rwxrwx--- 1 ftp ftp-admin 33307200 Oct 5 2008 bloplab 7 cd1.sub -rwxrwx--- 1 ftp ftp-admin 772 Oct 5 2008 bloplab 7 cd2.ccd -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd2.cue -rwxrwx--- 1 ftp ftp-admin 413902608 Oct 5 2008 bloplab 7 cd2.img -rwxrwx--- 1 ftp ftp-admin 16893984 Oct 5 2008 bloplab 7 cd2.sub the 4 entries in which groupname and file size are only separated by one space wont be parsed properly, the others work Add markup to ensure spaces are preserved in the listings > UnixFTPEntryParser fails to parse some entries > ---------------------------------------------- > > Key: NET-294 > URL: https://issues.apache.org/jira/browse/NET-294 > Project: Commons Net > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Gilles Duboscq > > The regex does match the entry but the resulting groups are wrong for exemple, with > {code} > -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img > {code} > the unix group name group will match "ftp-admin 816026400 Oct" file size group will match "5" first date group will match "2008 bloplab" then the year group will match "7" and the file name group will match "cd1.img" > in this listing : > {code} > -rwxrwx--- 1 ftp ftp-admin 771 Oct 5 2008 bloplab 7 cd1.ccd > -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd1.cue > -rwxrwx--- 1 ftp ftp-admin 816026400 Oct 5 2008 bloplab 7 cd1.img > -rwxrwx--- 1 ftp ftp-admin 33307200 Oct 5 2008 bloplab 7 cd1.sub > -rwxrwx--- 1 ftp ftp-admin 772 Oct 5 2008 bloplab 7 cd2.ccd > -rwxrwx--- 1 ftp ftp-admin 76 Oct 5 2008 bloplab 7 cd2.cue > -rwxrwx--- 1 ftp ftp-admin 413902608 Oct 5 2008 bloplab 7 cd2.img > -rwxrwx--- 1 ftp ftp-admin 16893984 Oct 5 2008 bloplab 7 cd2.sub > {code} > the 4 entries in which groupname and file size are only separated by one space wont be parsed properly, the others work -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.