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

QFtp command List fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.6.1
    • Network: FTP
    • None
    • WinCE 6.0

      The QFtp command List fails because in the the regular expression for dosPattern in the method QftpDTP::parseDir is wrong. My WinCE Server 6.0 returns the following string:

      01-01-06  12:00                45056 Filename.cfg
      

      and the dosPattern is looking for an AM/PM at the end of the time:

      ^(\\d\\d-\\d\\d-\\d\\d\\ \\ \\d\\d:\\d\\d[AP]M)\\s+(<DIR>|\\d+)\\s+(\\S.*)$
      

      changing the regular expression to:

      ^(\\d\\d-\\d\\d-\\d\\d\\ \\ \\d\\d:\\d\\d[AP ][M ])\\s+(<DIR>|\\d+)\\s+(\\S.*)$
      

      fixes the bug.

      Hope you will add this change to the next version.

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

            Unassigned Unassigned
            daisycutter Jan Höppner
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes