Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActionMailer errors on ruby-1.9.1-p376

#3731

1) Error:
test_decode_message_with_incorrect_charset(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:876:in `test_decode_message_with_incorrect_charset'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

2) Error: test_decode_message_with_unknown_charset(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:1035:in `test_decode_message_with_unknown_charset'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

3) Error: test_decode_message_without_content_type(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:870:in `test_decode_message_without_content_type'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

Getting this errors with Ruby 1.9.1 p376 running on Mac OSX.

Reported by Thiago Pradi · January 17th, 2010 @ 11:33 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. José Valim
    José Valim

    Can't duplicate. Which mail version you have bundled?

    January 18th, 2010 @ 09:00 AM

  2. Thiago Pradi
    Thiago Pradi

    mail-1.6.0 and mail-1.5.4 raises the same error for me.

    1) Error: test_decode_message_with_incorrect_charset(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:875:in `test_decode_message_with_incorrect_charset'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    2) Error: test_decode_message_with_unknown_charset(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:1034:in `test_decode_message_with_unknown_charset'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    3) Error: test_decode_message_without_content_type(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:869:in `test_decode_message_without_content_type'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    143 tests, 385 assertions, 0 failures, 3 errors, 0 skips
    rake aborted!
    Command failed with status (1): [/Users/tchandy/.rvm/ruby-1.9.1-p376/bin/ru...]

    (See full trace by running task with --trace)

    January 19th, 2010 @ 04:28 AM

  3. Mikel Lindsaar
    Mikel Lindsaar

    Can you put the email that raised the error as an attachment?

    You can sanitise it first, but try not to change the contents (charsets) too much.

    Mikel

    January 19th, 2010 @ 09:13 AM

  4. Rizwan Reza
    Rizwan Reza
    • State changed from new to invalid
    • Tag cleared.

    January 21st, 2010 @ 04:50 PM