deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DTACLOUD-172) Creating blob using PUT/format=json returns 'HTTP/1.1 406 Not Acceptable' - blob is successfully created
Date Wed, 28 Mar 2012 18:29:27 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ronelle Landy closed DTACLOUD-172.
----------------------------------


Closing JIRA as fixed.

Tested deltacloud commit version: bd67983cac800cec97e4ff5aa0b3ac491452a2f7

curl -H 'content-type: text/html' -H 'X-Deltacloud-Blobmeta-Name:blob_name03272012_4' -H 'X-Deltacloud-Blobmeta-Version:2.4'
-H 'X-Deltacloud-Blobmeta-Author:rlandy' -iv --upload-file "/home/rlandy/Temp/rhel62rhevm.xml"
--user "uname:password" "http://localhost:4008/api/buckets/bucket_rlandy/blob03272012_4?format=json"

* About to connect() to localhost port 4008 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 4008 (#0)
* Server auth using Basic with user 'xxx'
> PUT /api/buckets/bucket_rlandy/blob03272012_4?format=json HTTP/1.1
> Authorization: Basic QUtJQUpDQkIyNjVBNTdDR0tSMlE6bVJxUG80QzU2NmVwT2F1SXhPNGZhRnNPZGVUeXVzN29PVmRIS2d3NQ==
> User-Agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.1.0 zlib/1.2.5
libidn/1.22 libssh2/1.2.7
> Host: localhost:4008
> Accept: */*
> content-type: text/html
> X-Deltacloud-Blobmeta-Name:blob_name03272012_4
> X-Deltacloud-Blobmeta-Version:2.4
> X-Deltacloud-Blobmeta-Author:rlandy
> Content-Length: 931
> Expect: 100-continue
> 
* Done waiting for 100-continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Type: application/json
Content-Type: application/json
< Server: Apache-Deltacloud/0.5.0
Server: Apache-Deltacloud/0.5.0
< Content-Length: 316
Content-Length: 316
< X-XSS-Protection: 1; mode=block
X-XSS-Protection: 1; mode=block
< Cache-Control: max-age=0, private, must-revalidate
Cache-Control: max-age=0, private, must-revalidate
< X-Frame-Options: sameorigin
X-Frame-Options: sameorigin
< ETag: "b619f18dc22e418da2f62b19bedcb303"
ETag: "b619f18dc22e418da2f62b19bedcb303"
< Date: Wed, 28 Mar 2012 18:24:31 GMT
Date: Wed, 28 Mar 2012 18:24:31 GMT
< X-Runtime: 0.424842
X-Runtime: 0.424842
< Connection: keep-alive
Connection: keep-alive

< 
* Connection #0 to host localhost left intact
* Closing connection #0
{"blob":{"href":"http://localhost:4008/api/buckets/bucket_rlandy/blob03272012_4","last_modified":"","bucket":"bucket_rlandy","content_type":"text/html","id":"blob03272012_4","user_metadata":[["x-amz-meta-version","2.4"],["x-amz-meta-name","blob_name03272012_4"],["x-amz-meta-author","rlandy"]],"content_length":931}}[rlandy@localhost
/]$
                
> Creating blob using PUT/format=json returns 'HTTP/1.1 406 Not Acceptable' - blob is successfully
created
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-172
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-172
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: 7e372dfca79c02a799046287e5936129216b781b
- branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud
> Fedora 16, RHEL 6.2
> ec2 provider
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Fixes-DTACLOUD-172-Adds-json-format-for-non-streamin.patch
>
>
> Creating blob using PUT/format=json returns 'HTTP/1.1 406 Not Acceptable' although blob
is successfully created:
> curl  -H 'content-type: text/html' -H 'X-Deltacloud-Blobmeta-Name:myblob' -H  'X-Deltacloud-Blobmeta-Version:2.4'
-H  'X-Deltacloud-Blobmeta-Author:rlandy' -iv --upload-file  "/home/rlandy/Temp/rhel62rhevm.xml"
 --user "username:password" "http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob6?format=json"
> * About to connect() to localhost port 3009 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to localhost (127.0.0.1) port 3009 (#0)
> * Server auth using Basic with user 'AKIAJCBB265A57CGKR2Q'
> > PUT /api/buckets/bucket-rlandy2/03222012blob6?format=json HTTP/1.1
> > Authorization: Basic QUtJQUpDQkIyNjVBNTdDR0tSMlE6bVJxUG80QzU2NmVwT2F1SXhPNGZhRnNPZGVUeXVzN29PVmRIS2d3NQ==
> > User-Agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.1.0 zlib/1.2.5
libidn/1.22 libssh2/1.2.7
> > Host: localhost:3009
> > Accept: */*
> > content-type: text/html
> > X-Deltacloud-Blobmeta-Name:myblob
> > X-Deltacloud-Blobmeta-Version:2.4
> > X-Deltacloud-Blobmeta-Author:rlandy
> > Content-Length: 931
> > Expect: 100-continue
> > 
> * Done waiting for 100-continue
> * We are completely uploaded and fine
> < HTTP/1.1 406 Not Acceptable
> HTTP/1.1 406 Not Acceptable
> < Content-Type: text/html;charset=utf-8
> Content-Type: text/html;charset=utf-8
> < X-Frame-Options: sameorigin
> X-Frame-Options: sameorigin
> < Server: Apache-Deltacloud/0.5.0
> Server: Apache-Deltacloud/0.5.0
> < Date: Thu, 22 Mar 2012 20:48:02 GMT
> Date: Thu, 22 Mar 2012 20:48:02 GMT
> < X-Runtime: 0.907590
> X-Runtime: 0.907590
> < X-XSS-Protection: 1; mode=block
> X-XSS-Protection: 1; mode=block
> < Content-Length: 0
> Content-Length: 0
> < Connection: keep-alive
> Connection: keep-alive
> < 
> * Connection #0 to host localhost left intact
> * Closing connection #0
> Assigning to Marios as requested

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message