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

FTPListParseEngine does not provide access to raw responses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: None
    • Labels:
      None

      Description

      The FTPListParseEngine class reads the responses from the server and stores the lines in a list during the preparse phase.

      The parse phase creates the FTPFile entries from the raw strings. However, if parsing fails, nothing is returned. There is currently no way to access the unparsed string that failed the parsing.

      It would be useful to provide this access somehow.

      The FTPFile class does include the unparsed entry as one of its fields.
      However, currently the expectation is that only parsed entries will be returned, so it would be necessary to add a configuration option for the engine. This would probably need to be an FTPClient option that could be passed to the engine on construction or perhaps as a getFiles() parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebb@apache.org Sebb
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: