Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.1.0
    • Component/s: Core
    • Labels:
      None

      Description

      Enhance reply commands to include custom messages.

      Initial approach is to store this messages in session.

        Activity

        Hide
        DevNull43 added a comment -

        Whetever you write to session session.custom will be displayed if org/apache/ftpserver/message/FtpStatus.properties has a

        {session.custom}

        variable in the desired command.

        Example to set variable from session:

        long time = System.currentTimeMillis();
        session.setAttribute("session.custom", "test " + time);

        Show
        DevNull43 added a comment - Whetever you write to session session.custom will be displayed if org/apache/ftpserver/message/FtpStatus.properties has a {session.custom} variable in the desired command. Example to set variable from session: long time = System.currentTimeMillis(); session.setAttribute("session.custom", "test " + time);
        Hide
        DevNull43 added a comment -

        This requires variable session.custom is stored in session.

        Problems with this approach:

        1- Developers has to update this variable, and reset when appropiate. If not reset or updated it will display the same message within all the session.
        2- Unsure if this can be done from a FtpLet, right now still requires overwrite commands to store this,

        Opened to more ideas.

        Show
        DevNull43 added a comment - This requires variable session.custom is stored in session. Problems with this approach: 1- Developers has to update this variable, and reset when appropiate. If not reset or updated it will display the same message within all the session. 2- Unsure if this can be done from a FtpLet, right now still requires overwrite commands to store this, Opened to more ideas.
        Hide
        DevNull43 added a comment -

        First approach

        Show
        DevNull43 added a comment - First approach

          People

          • Assignee:
            Unassigned
            Reporter:
            DevNull43
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development