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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > DELETE request not working

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2006, 09:46 AM
bruno_c bruno_c is offline
New Member
 
Join Date: Nov 2006
Posts: 4
Default DELETE request not working

Hi everyone,

I'm using edge rails with REST support. My problem is when I want to delete a resource using DELETE, Litespeed doesn't even talk to the rails app and send me back a "302 found" response. I'm using the 2.2.5 standard release.

With Mongrel I hadn't this problem, so I think it's a Litespeed issue. Is there a solution?

Thanks.

Last edited by bruno_c; 11-22-2006 at 09:49 AM..
Reply With Quote
  #2  
Old 11-22-2006, 07:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please tell me exactly how the DELETE request looks like. I will try to produce it.
Reply With Quote
  #3  
Old 11-23-2006, 12:55 AM
bruno_c bruno_c is offline
New Member
 
Join Date: Nov 2006
Posts: 4
I'm just using curl for the moment:

curl -X DELETE "http://domain.com/resource/10.xml"

Code:
<html>
<head><title> 302 Found
</title></head>
<body><h1> 302 Found
</h1>
The document has been temporarily moved to <A HREF="%s">here</A>.<hr />
Powered By <a href='http://www.litespeedtech.com'>LiteSpeed Web Server</a><br />
<font face="Verdana, Arial, Helvetica" size=-1>Lite Speed Technologies is not responsible for administration and contents of this web site!</font></body></html>
I have this response even if the resource doesn't exist...

Thanks for your help.
Reply With Quote
  #4  
Old 11-24-2006, 08:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
OK, this is fixed. that because of the 404 handler used for Rails requests. If you use rewrite rule to dispatch rails requests, it will not happen.

Thanks for the bug report.
Reply With Quote
  #5  
Old 11-24-2006, 10:26 AM
bruno_c bruno_c is offline
New Member
 
Join Date: Nov 2006
Posts: 4
Do I need to install a new version or it was already fixed in 2.2.5? If yes, I don't understand what I need to do..
I tried to enable rewrite but it doesn't change anything.

Sorry, I'm new to Litespeed.

Thanks again for your help.
Reply With Quote
  #6  
Old 11-24-2006, 01:38 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Fix will be in 2.2.6.
If you want to try rewrite, you can add rewrite rules in public/.htaccess to the Rails Context.
Reply With Quote
  #7  
Old 11-24-2006, 01:45 PM
bruno_c bruno_c is offline
New Member
 
Join Date: Nov 2006
Posts: 4
Okay, thanks. I will wait the next release.
Reply With Quote
  #8  
Old 11-28-2006, 03:12 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
bruno,

2.2.6 has been released.
Reply With Quote
Reply

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 07:12 PM.



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