Bug 783201 - DELETE results in 404 w/ a valid url
Summary: DELETE results in 404 w/ a valid url
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configserver
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Dan Radez
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks: 766012
TreeView+ depends on / blocked
 
Reported: 2012-01-19 16:37 UTC by dgao
Modified: 2012-08-30 17:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description dgao 2012-01-19 16:37:03 UTC
Request from automation:

   "DELETE /deployment/1/639315446219588758985455 HTTP/1.1[\r][\n]"
   "Content-Type: application/x-www-form-urlencoded[\r][\n]" 
   "Accept: application/x-www-form-urlencoded[\r][\n]"
   "Authorization: OAuth oauth_consumer_key="238410031931807488680587", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1326989238", oauth_nonce="-5579553774992316892", oauth_signature="4YrUbVofNGoXLVqYPlgEnpykcYM%3D"[\r][\n]"
   "Content-Length: 0[\r][\n]"
   "Host: deaddonkey.usersys.redhat.com[\r][\n]"
   "Connection: Keep-Alive[\r][\n]"
   "User-Agent: Apache-HttpClient/4.1.2 (java 1.5)[\r][\n]" 

thin.log

DELETE /deployment/1/639315446219588758985455 HTTP/1.1
Host: localhost:4567
Content-Type: application/x-www-form-urlencoded
Accept: application/x-www-form-urlencoded
Authorization: OAuth oauth_consumer_key="238410031931807488680587", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1326989238", oauth_nonce="-5579553774992316892", oauth_signature="4YrUbVofNGoXLVqYPlgEnpykcYM%3D"
User-Agent: Apache-HttpClient/4.1.2 (java 1.5)
X_FORWARDED_PROTO: https
X-Forwarded-For: 10.11.230.249
X-Forwarded-Host: deaddonkey.usersys.redhat.com
X-Forwarded-Server: deaddonkey.usersys.redhat.com
Connection: Keep-Alive
Content-Length: 0

10.11.230.249 - - [19/Jan/2012 11:06:14] "DELETE /deployment/1/639315446219588758985455 HTTP/1.1" 404 - 0.0012
HTTP/1.1 404 Not Found
Content-Type: text/html;charset=utf-8
Content-Length: 0
Connection: keep-alive
Server: thin 1.2.11 codename Bat-Shit Crazy

[root@deaddonkey instances]# ls 639315446219588758985455
639315446219588758985455.tgz  instance-config.xml  ip  provided-parameters.xml
[root@deaddonkey instances]# pwd
/var/lib/aeolus-configserver/configs/instances

Comment 1 Dan Radez 2012-01-24 16:55:31 UTC
|-- configs
|   |-- deployables
|   |   `-- test_instance_uuid_1
|   |       |-- 169354431787649247442393 ->

this is the dir structure from the config server.
ids that can be deleted with this statement are subdirectories of the deployables dir

Comment 2 dgao 2012-01-24 20:47:59 UTC
thin.log 

10.11.230.249 - - [24/Jan/2012 15:45:17] "DELETE /deployment/1/test_instance_uuid_1 HTTP/1.1" 200 69 0.0256

client side
DELETE /deployment/1/test_instance_uuid_1 HTTP/1.1
Receiving response: HTTP/1.1 200 OK


Note You need to log in before you can comment on or make changes to this bug.