Does anyone know why binary PUTs are causing a 500 error in Rails? Non binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve tried using both mongrel and webrick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alex MacCaw wrote:> Does anyone know why binary PUTs are causing a 500 error in Rails? Non > binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve > tried using both mongrel and webrick.Look in your logs to find what is causing your 500 error. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alex Wayne wrote:> Alex MacCaw wrote: >> Does anyone know why binary PUTs are causing a 500 error in Rails? Non >> binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve >> tried using both mongrel and webrick. > > Look in your logs to find what is causing your 500 error.Yes, it looks like a cgi error, with windows at least: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/cgi_methods.rb:49:in `parse_request_parameters'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
>>> Does anyone know why binary PUTs are causing a 500 error in Rails? Non >>> binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve >>> tried using both mongrel and webrick.Well, I''ve solved it by (by fluke). You need to a put a ''puts'' in: C:\ruby\lib\ruby\gems\1.8\gems\actionpack-1.12.5\lib\action_controller\cgi_ext\raw_post_data_fix.rb At the end of ''read_params_from_post''. This makes the method return nil so @params defaults to an empty string: @params = CGI::parse(read_query_params(method) || "") I''m not sure whether this is an bug in rails or just faulty webDAV requests. Anyway, can someone suggest an easy way to ''patch'' rails without manually editing it. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---