mstreffo
2008-Jan-15 13:35 UTC
HTTP 400 error when using Aptana IDE, Webrick and Rails with Vista and IE7
Hi, I have a strange problem that appears to be a problem with redirect_to with the following software combination. Vista Business IE7 Aptana IDE and Webrick Rails 1.8.6 I have a user controller with a login method, such as : def login # Handle posted stuff here # Find user name and login # A raise user.inspect here works user=find_by_username.... redirect_to :action => ''index'' end def index # A raise user.inspect here is never reached # Do some stuff here end At some point, assuming it is around the redirect_to command, the webrick console in Aptana reports an invalid exception '''' and and HTTP 400 error. This error is echoed by IE7. I''m running Rails 1.8.6, with a Webrick server setup under Aptana. The underlying operating systems is Vista business with IE7. This problem has started happening in the last week, even on code that has not been changed in that time. I''ve tried the following; 1) Running Mozilla on the same PC, this works OK so I guess my application is OK. 2) Using another PC to access the application on my Vista PC. Both IE7 (on XP) and Mozilla on this 2nd PC work OK. Therefore, I''m assuming it is something to do with my PC, with either Vista or IE7 causing the problem. I''ve also tried; 1) Increasing the logging level of webrick to see exactly what the request is, but haven''t found a way to do this. Setting the server to debug doesn''t provide any more information in the console of the development log. 2) Removing the patches that vista has installed over the past week. 3) Searching the internet for any similar problems. Has anyone seen this before? Does anybody have any ideas on: 1) How to show the actual request coming in from the browser to the webrick server so that I can compare the differences between IE7 (on Vista) and IE7 (on XP) and Mozilla (on Vista/XP) 2) What might be the cause of this? All help is greatfully received! I don''t want to launch a site that says "Not for Vista" on the homepage! :-( Thanks Mark. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
mstreffo
2008-Jan-20 22:07 UTC
Re: HTTP 400 error when using Aptana IDE, Webrick and Rails with Vista and IE7
I''ve fixed this now by backing up my projects, uninstalling Aptana IDE and Ruby, then reinstallating Ruby and Aptana and re-importing my projects. Hope this helps someone in the future! Mark. On Jan 15, 1:35 pm, mstreffo <mark.streff...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi, > > I have a strange problem that appears to be a problem with redirect_to > with the following software combination. > > Vista Business > IE7 > Aptana IDE and Webrick > Rails 1.8.6 > > I have a user controller with a login method, such as : > > def login > # Handle posted stuff here > > # Find user name and login > # A raise user.inspect here works > user=find_by_username.... > redirect_to :action => ''index'' > end > > def index > # A raise user.inspect here is never reached > # Do some stuff here > end > > At some point, assuming it is around the redirect_to command, the > webrick console in Aptana reports an invalid exception '''' and and HTTP400error. This error is echoed by IE7. > > I''m running Rails 1.8.6, with a Webrick server setup under Aptana. > The underlying operating systems is Vista business with IE7. This > problem has started happening in the last week, even on code that has > not been changed in that time. > > I''ve tried the following; > > 1) Running Mozilla on the same PC, this works OK so I guess my > application is OK. > 2) Using another PC to access the application on my Vista PC. Both > IE7 (on XP) and Mozilla on this 2nd PC work OK. > > Therefore, I''m assuming it is something to do with my PC, with either > Vista or IE7 causing the problem. > > I''ve also tried; > > 1) Increasing the logging level of webrick to see exactly what the > request is, but haven''t found a way to do this. Setting the server to > debug doesn''t provide any more information in the console of the > development log. > 2) Removing the patches that vista has installed over the past week. > 3) Searching the internet for any similar problems. > > Has anyone seen this before? Does anybody have any ideas on: > > 1) How to show the actual request coming in from the browser to the > webrick server so that I can compare the differences between IE7 (on > Vista) and IE7 (on XP) and Mozilla (on Vista/XP) > 2) What might be the cause of this? > > All help is greatfully received! I don''t want to launch a site that > says "Not for Vista" on the homepage! :-( > > Thanks > > Mark.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---