Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-209

onSite() method of DefaultFtplet called after command has been processed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M3
    • 1.0.0-M4
    • Ftplets
    • None
    • Windows XP, Sun JVM 1.5.0

    Description

      According to the ftplet API documentation, the onSite() method is described thus:

      – PASTE –
      This is SITE command start notification method. It gives a chance to implement custom SITE command. If this method returns SKIP or DISCONNECT, the existing SITE commands will not be executed.
      – PASTE –

      But the onSite() method is only called inside the DefaultFtplet.afterCommand() method which means that the custom SITE command issued by the user always tries to be processed by the server, resulting in a "502 - Command SITE not implemented for xxx" message being displayed to the user even though the custom command is executed. Furthermore, returning FTPletResult.SKIP after processing the custom code to prevent further processing of the request by the server has no effect. For the onSite() method to work as per the documentation, it would have to be called in the beforeCommand() function.

      I can create sample code for clarification if you like.

      Attachments

        Activity

          People

            niklas Niklas Therning
            whitlabell Gary Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: