JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-2950

Net::IMAP#authenticate stalls / blocks in recent versions of JRuby

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1.3
    • Fix Version/s: JRuby 1.2
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Environment:
      Ubuntu Linux. Courier IMAP with rawdata:
      OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      I'm experiencing problems authenticating using the standard Net::IMAP#authenticate method.

      I've reliably reproduced this bug on two recent versions of JRuby (1.1.3 released and current SVN Trunk). Version 1.0.3 does not exhibit this bug - the authentication works correctly.

      c ruby 1.8.4 also functions correctly.

      the code to recreate this is simply:

      require 'net/imap'
      imap = Net::IMAP.new('mail.example.com')
      imap.authenticate('LOGIN', 'example.user@example.com', 'password')

      This code executed from either jirb or a standard script with jruby >1.1.3 consistently blocks, and does not exit.

        Activity

        Charles Oliver Nutter made changes -
        Field Original Value New Value
        Fix Version/s JRuby 1.1+ [ 13421 ]
        Fix Version/s JRuby 1.0.3 [ 13811 ]
        Charles Oliver Nutter made changes -
        Fix Version/s JRuby 1.2 [ 14757 ]
        Resolution Fixed [ 1 ]
        Assignee Charles Oliver Nutter [ headius ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s JRuby 1.x+ [ 13421 ]
        Charles Oliver Nutter made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Corin Moss
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: