Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-215

UNIXFTPEntryParser doesn't preserve trailing whitespace in files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 2.2
    • None
    • None

    Description

      From https://bugs.eclipse.org/bugs/show_bug.cgi?id=204740 :

      The Commons Net FTP Entry Parsers do not preserve trailing whitespace on file names. On systems like UNIX that support trailing whitespace, this results in some invalid entries being parsed.

      The bug seems to be in Jakarta Commons Net UnixFTPEntryParser – in its REGEX,
      the last field ("endtoken") is declared
      (
      s*.*)
      which means any whitespace followed by at least one non-whitespace character.
      Which is not the case in case of trailing whitespace.

      Attachments

        Activity

          People

            Unassigned Unassigned
            moberhuber Martin Oberhuber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: