Hi, Im getting a strange problem. I have a rails application (running rails 3.0.0), which uses NTLM to deal with the auth. The problem is that, with IE (all versions) when we use POST as a result of a form, the "params" variable is always empty, and so the application crashes. The strangest thing is that it works with both Firefox and Chrome, and in IE when I TURN OFF the NTLM. Also there is another application running on the same server, that uses IE and NTLM, with basiclly the same configurations (i guess) and runs OK. The only difference is that it runs on rails 2.2.2. Has anyone got any ideia why this is happening ? Thank a lot! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 January 2011 15:07, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > Im getting a strange problem. I have a rails application (running rails > 3.0.0), which uses NTLM to deal with the auth. The problem is that, with > IE (all versions) when we use POST as a result of a form, the "params" > variable is always empty, and so the application crashes. The strangest > thing is that it works with both Firefox and Chrome, and in IE when I > TURN OFF the NTLM. Also there is another application running on the same > server, that uses IE and NTLM, with basiclly the same configurations (i > guess) and runs OK. The only difference is that it runs on rails 2.2.2. > > Has anyone got any ideia why this is happening ?Have you checked that the html of the page is valid by copying the complete page html (View > Page Source or similar in your browser) and pasting it into the w3c html validator site? Differing operation between browsers is often the result of invalid html. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin, tks for you answer. Yes i isolated the form and ran the check and everything seemed ok. This is really getting anoying, its been week like this.. Regards, RPC. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 January 2011 16:27, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: Please don''t top post, it makes it difficult to follow the thread. Insert your comments into the previous post at appropriate points. Thanks> Colin, tks for you answer. > > Yes i isolated the form and ran the check and everything seemed ok. This > is really getting anoying, its been week like this..Did you copy/paste the *complete* source of the page? Are you using javascript? If so try with firebug in firefox and see if it gives any errors. Could it be a Rails 3.0.0 issue? Perhaps an upgrade to 3.0.3 would be advisable. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law wrote in post #973693:> On 10 January 2011 16:27, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > Please don''t top post, it makes it difficult to follow the thread. > Insert your comments into the previous post at appropriate points. > Thanks > >> Colin, tks for you answer. >> >> Yes i isolated the form and ran the check and everything seemed ok. This >> is really getting anoying, its been week like this.. > > Did you copy/paste the *complete* source of the page? > > Are you using javascript? If so try with firebug in firefox and see > if it gives any errors. > > Could it be a Rails 3.0.0 issue? Perhaps an upgrade to 3.0.3 would be > advisable. > > ColinSorry for the bad posting. Yes i''ve also tried the complete source, i am not using javascript and i upgraded today for Rails 3.0.3 and the problem persists.. I just cant understand why it works when i take the NTLM auth method out of the picture.. Thanks in advance -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 January 2011 15:20, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> [...] > Yes i''ve also tried the complete source, i am not using javascript and i > upgraded today for Rails 3.0.3 and the problem persists.. I just cant > understand why it works when i take the NTLM auth method out of the > picture..If you look at the app log and compare it between FF and IE what differences do you see? You could post the relevant bits of log if appropriate. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law wrote in post #974329:> On 12 January 2011 15:20, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> [...] >> Yes i''ve also tried the complete source, i am not using javascript and i >> upgraded today for Rails 3.0.3 and the problem persists.. I just cant >> understand why it works when i take the NTLM auth method out of the >> picture.. > > If you look at the app log and compare it between FF and IE what > differences do you see? > > You could post the relevant bits of log if appropriate. > > ColinThks for ur concern Colin. I even created a simple-mini app just using the standard Rails Scaffold, in order to isolate the problem. And it still remains. The main difference is that, in FF it passes (besides the necessary parameteres) the "authenticity_token" and the "commit". PS: I had to turn off protect_from_forgery in the application_controller.rb in order to get it working in IE. Or else i''d get a "invalid authenticity token". Internet Explorer: Started POST "/people" for xxx at Wed Jan 12 17:15:22 +0000 2011 Processing by PeopleController#create as HTML **************************************** ** Application Controller :: Authorizer **************************************** ** PArams: {"action"=>"create", "controller"=>"people"} ** CREATE ** Params: {"action"=>"create", "controller"=>"people"} SQL (0.1ms) BEGIN SQL (19.7ms) INSERT INTO `people` (`age`, `created_at`, `name`, `telephone`, `updated_at`) VALUES (NULL, ''2011-01-12 17:15:22'', NULL, NULL, ''2011-01-12 17:15:22'') SQL (5.6ms) COMMIT Redirected to http://.. (OMITED) Completed 302 Found in 35ms FireFox: Started POST "/people" for xxx at Wed Jan 12 17:15:43 +0000 2011 Processing by PeopleController#create as HTML Parameters: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", "telephone"=>"34243", "age"=>"3242"}, "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", "utf8"=>"â"} **************************************** ** Application Controller :: Authorizer **************************************** ** PArams: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", "telephone"=>"34243", "age"=>"3242"}, "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", "utf8"=>"â", "action"=>"create", "controller"=>"people"} ** CREATE ** Params: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", "telephone"=>"34243", "age"=>"3242"}, "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", "utf8"=>"â", "action"=>"create", "controller"=>"people"} SQL (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `people` (`age`, `created_at`, `name`, `telephone`, `updated_at`) VALUES (3242, ''2011-01-12 17:15:43'', ''dasd'', 34243, ''2011-01-12 17:15:43'') SQL (7.8ms) COMMIT Redirected to http://.. (OMITED) Completed 302 Found in 18ms Thanks once again. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 January 2011 17:21, Roger Correia <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> ... > Thks for ur concern Colin. I even created a simple-mini app just using > the standard Rails Scaffold, in order to isolate the problem. And it > still remains. The main difference is that, in FF it passes (besides the > necessary parameteres) the "authenticity_token" and the "commit". > > PS: I had to turn off protect_from_forgery in the > application_controller.rb in order to get it working in IE. Or else i''d > get a "invalid authenticity token". > > Internet Explorer: > Started POST "/people" for xxx at Wed Jan 12 17:15:22 +0000 2011 > Processing by PeopleController#create as HTML > **************************************** > ** Application Controller :: Authorizer > **************************************** > ** PArams: {"action"=>"create", "controller"=>"people"} > ** CREATE > ** Params: {"action"=>"create", "controller"=>"people"} > SQL (0.1ms) BEGIN > SQL (19.7ms) INSERT INTO `people` (`age`, `created_at`, `name`, > `telephone`, `updated_at`) VALUES (NULL, ''2011-01-12 17:15:22'', NULL, > NULL, ''2011-01-12 17:15:22'') > SQL (5.6ms) COMMIT > Redirected to http://.. (OMITED) > Completed 302 Found in 35ms > > FireFox: > > Started POST "/people" for xxx at Wed Jan 12 17:15:43 +0000 2011 > Processing by PeopleController#create as HTML > Parameters: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", > "telephone"=>"34243", "age"=>"3242"}, > "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", > "utf8"=>"â"} > **************************************** > ** Application Controller :: Authorizer > **************************************** > ** PArams: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", > "telephone"=>"34243", "age"=>"3242"}, > "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", > "utf8"=>"â", "action"=>"create", "controller"=>"people"} > ** CREATE > ** Params: {"commit"=>"Create Person", "person"=>{"name"=>"dasd", > "telephone"=>"34243", "age"=>"3242"}, > "authenticity_token"=>"6U9cHxuI6gW3WPbZoe+i93Tbu+oWjohdv+nuwb/8QXY=", > "utf8"=>"â", "action"=>"create", "controller"=>"people"} > SQL (0.1ms) BEGIN > SQL (0.2ms) INSERT INTO `people` (`age`, `created_at`, `name`, > `telephone`, `updated_at`) VALUES (3242, ''2011-01-12 17:15:43'', ''dasd'', > 34243, ''2011-01-12 17:15:43'') > SQL (7.8ms) COMMIT > Redirected to http://.. (OMITED) > Completed 302 Found in 18msCould it be this? http://lists.rubyonrails.org/pipermail/rails/2006-March/027283.html It is ancient and I can''t say I understand it, but the log looks very like yours. Otherwise I have reached the end of my knowledge span I think. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.