Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27610

QFtp::list unixPattern does not support FTP servers that do not send file group without leading space [SOLVED]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.3
    • Network: FTP
    • None
    • Linux pc 3.4.6-1-CHAKRA #1 SMP PREEMPT Fri Jul 20 02:25:41 UTC 2012 x86_64 GNU/Linux

    Description

      QFtpDTP::parseDir() during ftp LIST response, "unixPattern" is initialized with an "incorrect" expresion:

      "^([\\-dl])([a-zA-Z\\-]{9,9})\\s+\\d+\\s+(\\S*)\\s+"
      "(\\S*)\\s+(\\d+)\\s+(\\S+\\s+\\S+\\s+\\S+)\\s+(\\S.*)"
      

      Solution:

      "^([\\-dl])([a-zA-Z\\-]{9,9})\\s+\\d+\\s+(\\S*)\\s*"
      "(\\S*)\\s+(\\d+)\\s+(\\S+\\s+\\S+\\s+\\S+)\\s+(\\S.*)"
      

      By this modification, the group leading space character is optional.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shkearns Shane Kearns
            joseluis José Luis García Morillo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes