All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: tracker.ceph.com API
Date: Sat, 07 Feb 2015 10:06:58 +0100	[thread overview]
Message-ID: <54D5D5B2.8060203@dachary.org> (raw)
In-Reply-To: <54ABC3E5.7040704@dachary.org>

[-- Attachment #1: Type: text/plain, Size: 2442 bytes --]



On 06/01/2015 12:15, Loic Dachary wrote:
> Hi,
> 
> I tried various things to update tracker.ceph.com from the command line but failed. The best result I have is the following:
> 
> cat /tmp/a.xml
> 
> <issue>
>   <id>10281</id>
>   <subject>firefly: make check fails on fedora 20 (1)</subject>
>   <custom_fields type="array">
>     <custom_field name="Backport" id="2">
>       <value>firefly</value>
>     </custom_field>
>   </custom_fields>
> </issue>
> 
> curl --http1.0 --verbose -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

The content-type was missing:

curl --http1.0 --verbose --header 'Content-type: application/xml' -T /tmp/a.xml http://tracker.ceph.com/issues/10281.xml?key=cd9a99820b4e7543a

works :-)

> 
> * Hostname was NOT found in DNS cache
> *   Trying 64.90.32.38...
> * Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)
>> PUT /issues/10281.xml?key=cd9a99820b4e7543a3c HTTP/1.0
>> User-Agent: curl/7.35.0
>> Host: tracker.ceph.com
>> Accept: */*
>> Content-Length: 239
>>
> * We are completely uploaded and fine
> < HTTP/1.1 200 OK
> < Date: Tue, 06 Jan 2015 11:05:55 GMT
> * Server Apache/2.2.22 (Ubuntu) is not blacklisted
> < Server: Apache/2.2.22 (Ubuntu)
> < X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.13
> < X-UA-Compatible: IE=Edge,chrome=1
> < Cache-Control: no-cache
> < X-Request-Id: eb302e17961997bafade5739f48a7183
> < X-Runtime: 1.375926
> < X-Rack-Cache: invalidate, pass
> < Set-Cookie: _redmine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkZTIwY2Y5NWYzYTE5BjsAVA%3D%3D--a2a2fd48f300f5c8c9; path=/; HttpOnly
> < Set-Cookie: autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
> < Status: 200
> < Content-Length: 0
> < Connection: close
> < Content-Type: application/xml; charset=utf-8
> <
> * Closing connection 0
> 
> but most of the time I get:
> 
> * Hostname was NOT found in DNS cache
> *   Trying 64.90.32.38...
> * Connected to tracker.ceph.com (64.90.32.38) port 80 (#0)
>> PUT /issues/10281.xml?key=cd9a99820b4e7543a3ce82febce4970b3dfb6b86 HTTP/1.0
>> User-Agent: curl/7.35.0
>> Host: tracker.ceph.com
>> Accept: */*
>> Content-Length: 239
>>
> * We are completely uploaded and fine
> * Empty reply from server
> * Connection #0 to host tracker.ceph.com left intact
> 
> Am I doing something wrong ?
> 
> Cheers
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2015-02-07  9:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 11:15 tracker.ceph.com API Loic Dachary
2015-01-08 14:46 ` Loic Dachary
2015-02-07  9:06 ` Loic Dachary [this message]
2015-02-09 21:27   ` Dan Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54D5D5B2.8060203@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.