Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 3.0-M1
    • Component/s: SMTPServer
    • Labels:
      None

      Description

      hi all:

      i have smtpserver configurated with authRequired=true, and try to verify it by telnet client as follow:

      auth login

      > 334 username

      myname

      > 334 password

      mypass

      then prompt

      > 334 password

      again and again whatever i input

      i have found the problem in org.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler.java

      when invoke doAUTH() method first, session.pushLineHandler will be executed if initialResponse == null

      whitch means i have "auth login" inputed but "auth login myname",

      next, doLoginAuthPass in onCommand will call session.pushLineHandler again after myname input.

      linehandler queue in session have 2 handlers now. one is for pass and the other is for user.

      but, it will be then poped up after AbstractSMTPLineHandler executed handleCommand in onLine method.

      so the hanlder for password "lost" and it prompt 334 password again which producted by username handler

        Activity

        tadpale created issue -
        tadpale made changes -
        Field Original Value New Value
        Description hi all:

        i have smtpserver configurated with authRequired=true, and try to verify it by telnet client as follow:

            > auth login

                334 username

            > myname

                334 password

            > mypass

        then prompt

            334 password

        again and again whatever i input

        i have found the problem in org.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler.java

        when invoke doAUTH() method first, session.pushLineHandler will be executed if initialResponse == null

        whitch means i have "auth login" inputed but "auth login myname",

        next, doLoginAuthPass in onCommand will call session.pushLineHandler again after myname input.

        linehandler queue in session have 2 handlers now. one is for pass and the other is for user.

        but, it will be then poped up after AbstractSMTPLineHandler executed handleCommand in onLine method.

        so the parser for password "lost" and it prompt 334 password again which producted by username handler
        hi all:

        i have smtpserver configurated with authRequired=true, and try to verify it by telnet client as follow:

            auth login

            > 334 username

            myname

            > 334 password

            mypass

        then prompt

            > 334 password

        again and again whatever i input

        i have found the problem in org.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler.java

        when invoke doAUTH() method first, session.pushLineHandler will be executed if initialResponse == null

        whitch means i have "auth login" inputed but "auth login myname",

        next, doLoginAuthPass in onCommand will call session.pushLineHandler again after myname input.

        linehandler queue in session have 2 handlers now. one is for pass and the other is for user.

        but, it will be then poped up after AbstractSMTPLineHandler executed handleCommand in onLine method.

        so the parser for password "lost" and it prompt 334 password again which producted by username handler
        tadpale made changes -
        Description hi all:

        i have smtpserver configurated with authRequired=true, and try to verify it by telnet client as follow:

            auth login

            > 334 username

            myname

            > 334 password

            mypass

        then prompt

            > 334 password

        again and again whatever i input

        i have found the problem in org.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler.java

        when invoke doAUTH() method first, session.pushLineHandler will be executed if initialResponse == null

        whitch means i have "auth login" inputed but "auth login myname",

        next, doLoginAuthPass in onCommand will call session.pushLineHandler again after myname input.

        linehandler queue in session have 2 handlers now. one is for pass and the other is for user.

        but, it will be then poped up after AbstractSMTPLineHandler executed handleCommand in onLine method.

        so the parser for password "lost" and it prompt 334 password again which producted by username handler
        hi all:

        i have smtpserver configurated with authRequired=true, and try to verify it by telnet client as follow:

            auth login

            > 334 username

            myname

            > 334 password

            mypass

        then prompt

            > 334 password

        again and again whatever i input

        i have found the problem in org.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler.java

        when invoke doAUTH() method first, session.pushLineHandler will be executed if initialResponse == null

        whitch means i have "auth login" inputed but "auth login myname",

        next, doLoginAuthPass in onCommand will call session.pushLineHandler again after myname input.

        linehandler queue in session have 2 handlers now. one is for pass and the other is for user.

        but, it will be then poped up after AbstractSMTPLineHandler executed handleCommand in onLine method.

        so the hanlder for password "lost" and it prompt 334 password again which producted by username handler
        Norman Maurer made changes -
        Assignee Norman Maurer [ norman ]
        Hide
        Norman Maurer added a comment -

        Fixed. Please try latest trunk. Thx for reporting!

        Show
        Norman Maurer added a comment - Fixed. Please try latest trunk. Thx for reporting!
        Norman Maurer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.0-M1 [ 12314294 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12512131 ] Default workflow, editable Closed status [ 12566805 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566805 ] jira [ 12581883 ]

          People

          • Assignee:
            Norman Maurer
            Reporter:
            tadpale
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development