Permalink
Browse files

Ensure that DispatcherError is being thrown correctly when a malforme…

…d request is received.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6a485c3 commit 2f5ee5a812bee922b198c7efbe3ffff29d072ffd Kent Sibilev committed Dec 11, 2006
@@ -1,5 +1,7 @@
*SVN*
+* Ensure that DispatcherError is being thrown when a malformed request is received. [Kent Sibilev]
+
* Added support for decimal types. Closes #6676. [Kent Sibilev]
* Removed deprecated end_form_tag helper. [Kent Sibilev]
@@ -3,6 +3,10 @@
module ActionWebService # :nodoc:
module Dispatcher # :nodoc:
class DispatcherError < ActionWebService::ActionWebServiceError # :nodoc:
+ def initialize(*args)
+ super
+ set_backtrace(caller)
+ end
end
def self.included(base) # :nodoc:
@@ -45,6 +45,8 @@ def decode_action_pack_request(action_pack_request)
def decode_request(raw_request, service_name)
method_name, params = XMLRPC::Marshal.load_call(raw_request)
Request.new(self, method_name, params, service_name)
+ rescue
+ return nil
end
def encode_request(method_name, params, param_types)

0 comments on commit 2f5ee5a

Please sign in to comment.