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

QFtp command List fails

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes