LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > 403 Error on _some_ file uploads in 4.1RC2

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2010, 12:52 PM
ideaoforder ideaoforder is offline
Member
 
Join Date: Jul 2008
Posts: 28
Default 403 Error on _some_ file uploads in 4.1RC2

Hello,

On one specific page, I'm getting a 403 Access Denied error when uploading files in a Rails app--the request doesn't even seem to hit the Rails app (i.e. nothing shows up in the log), so it's choking before it hits the app.

Everything works fine locally. And everything works fine on other pages running pretty much identical code. Even more strangely, everything seems to work fine when uploading from computers that have Rails installed, but not on computers that don't.

I haven't been able to pinpoint anything in the logs, but I feel like this is an issue with Rack, which had to be patched slightly to make LSAPI work with Rack 1.0.1 (required for Rails 2.3.5).

Any ideas on this?
Reply With Quote
  #2  
Old 09-02-2010, 02:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Is there any mod_security rule? Anything in error log?
Reply With Quote
  #3  
Old 09-02-2010, 03:00 PM
ideaoforder ideaoforder is offline
Member
 
Join Date: Jul 2008
Posts: 28
The error log is empty and I don't see anything in the general server log either. As far as I know there aren't any mod_security rules. Again, this works for every but one single action, which is very strange. Litespeed sends a 403 before the rails app even has a chance to process anything.
Reply With Quote
  #4  
Old 09-15-2010, 08:57 AM
ideaoforder ideaoforder is offline
Member
 
Join Date: Jul 2008
Posts: 28
Would upgrading to 4.1 RC3 help? Also, I had to patch Rack to work with RC2, will that patch cause a problem now?
Reply With Quote
  #5  
Old 09-16-2010, 10:55 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Quote:
Originally Posted by ideaoforder View Post
The error log is empty and I don't see anything in the general server log either. As far as I know there aren't any mod_security rules. Again, this works for every but one single action, which is very strange. Litespeed sends a 403 before the rails app even has a chance to process anything.
You can enable debug logging, and what happened. you can track log entries by your IP address.
Reply With Quote
Reply

Tags
4.1rc2, 403, rack, rails

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:54 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.