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

Suggestion to enable user properties file to be updated without restarting server

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M3
    • 1.0.0-M4
    • Core
    • None
    • Windows XP, JRE 1.5.0_11

    Description

      Currently, there is no method by which manual updates to a "user list" properties file that backs the PropertiesUserManager class can be loaded into a running server. You have to stop and then restart the server to see any changes.

      We are using FTPServer in embedded mode, and we need the site administrator to be able to hand-edit the file and then issue a custom function in our application to get the running server to reload the properties file. Prior to FTPServer-187, we handled this use case by creating a new instance of the PropertiesUserManager class using the newly-updated properties file and then calling server.getListener("default").setUserManager(...) .

      My suggestion is to add a refresh() method to the PropertiesUserManager class that will reload the properties file directly. Only new calls to getUserByName() would return the updated information - existing BaseUser instances remain unchanged.

      Attachments

        1. FTPSERVER-218-TEST.patch
          2 kB
          Gary Bell
        2. FTPSERVER-218.patch
          3 kB
          Gary Bell

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment