Commons Net
  1. Commons Net
  2. NET-215

UNIXFTPEntryParser doesn't preserve trailing whitespace in files

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      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.

        Activity

        Martin Oberhuber created issue -
        Sebb made changes -
        Field Original Value New Value
        Fix Version/s 2.0 [ 12312040 ]
        Rory Winston made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1 [ 12313001 ]
        Resolution Fixed [ 1 ]
        Sebb made changes -
        Fix Version/s 2.2 [ 12315361 ]
        Fix Version/s 2.1 [ 12313001 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Oberhuber
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development