Project

General

Profile

Actions

Backport #8281

closed

Net::IMAP can't parse response to the IMAP SETACL command correctly

Added by adantel (Alex Filatau) over 11 years ago. Updated over 11 years ago.

Status:
Closed
[ruby-core:54365]

Description

Found in ruby-2.0.0-p0

I'm working right now on upgrade of our test system from ruby 1.9.2 to ruby 2.0.0. Unfortunately, one of the test scripts that works flawlessly with ruby 1.9.2 is failing when trying to parse response of GETACL command. See the debug of the session below:

C: RUBY0002 CREATE INBOX/share
S: RUBY0002 OK CREATE completed
C: RUBY0003 SETACL INBOX/share lrswickxteda
S: RUBY0003 OK SETACL completed
C: RUBY0004 GETACL INBOX/share
S: * ACL "INBOX/share" "" lrswickxteda "" lrswickxteda
@str: "* ACL "INBOX/share" "" lrswickxteda "" lrswickxteda\r\n"
@pos: 19
@lex_state: EXPR_BEG
@token.symbol: QUOTED
@token.value: "INBOX/share"
#<Net::IMAP::ResponseParseError: unexpected token QUOTED (expected CRLF)>
/usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:3363:in parse_error' /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:3215:in match'
/usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:2136:in response' /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:2058:in parse'
/usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1181:in get_response' /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1089:in receive_responses'
/usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1075:in `block in initialize'

Please note, the same piece is working fine with ruby 1.9.2

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0