0xcodezero / activemessaging

Automatically exported from code.google.com/p/activemessaging
0 stars 0 forks source link

Avoid NoMethodError (and infinite loops w/ Stomp) when message is not a string #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

  class InfiniteLoopController < ApplicationController

    include ActiveMessaging::MessageSender
    publishes_to :persist_message

    def bug
      publish :persist_message, nil
      publish :persist_message, 666
    end

  end

What is the expected output? What do you see instead?

  http://jira.codehaus.org/browse/STOMP-1

What version of the product are you using? On what operating system?

  rev 100

Original issue reported on code.google.com by dennis.b...@gmail.com on 30 May 2007 at 12:43

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dennis.b...@gmail.com on 31 May 2007 at 12:34

Attachments:

GoogleCodeExporter commented 9 years ago
I just added a validation for this - no nil or empty message bodies allowed in
publish anymore.

Original comment by kooks...@gmail.com on 21 Jun 2007 at 7:09

GoogleCodeExporter commented 9 years ago
fixed

Original comment by kooks...@gmail.com on 13 Jul 2007 at 12:50