Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 50935 invoked from network); 18 Apr 2008 13:31:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 13:31:35 -0000 Received: (qmail 15788 invoked by uid 500); 18 Apr 2008 13:31:35 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 15762 invoked by uid 500); 18 Apr 2008 13:31:35 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 15751 invoked by uid 99); 18 Apr 2008 13:31:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 06:31:35 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 13:31:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0FCDC234C0DD for ; Fri, 18 Apr 2008 06:28:24 -0700 (PDT) Message-ID: <224302793.1208525304038.JavaMail.jira@brutus> Date: Fri, 18 Apr 2008 06:28:24 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Updated: (COUCHDB-40) Transfer-Encoding: Chunked on HTTP 1.0 request In-Reply-To: <1745229965.1208291927984.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Chesneau updated COUCHDB-40: ----------------------------------- Attachment: patch-src_couchdb_couch_httpd_erl This patch send valid http 1.0 response when you have 1.0 request. I can now post/put/delete doc, remove database. and replicate a database over a proxy. Everything work in HTTP/1.1 with chunks. This is a work in progress, for now test suite for unknow reason don't work with such messages : 1. Exception raised: {"message":"syntax error","fileName":"http://couchdb/_utils/script/json2.js","lineNumber":150,"stack":"()@:0\neval(\"()\")@:0\n(\"\")@http://couchdb/_utils/script/json2.js:150\n()@http://couchdb/_utils/script/couch.js:35\n(undefined)@http://couchdb/_utils/script/couch_tests.js:905\nrun(3)@http://couchdb/_utils/script/couch_tests.js:945\n@:0\n","name":"SyntaxError"} Firebug show me that DELETE doc is launch 2 times and don't work the second time since the doc don't exist any more. The first delete don't send an ok. anyway this patch mostly work, I have to have something stable this week-end. > Transfer-Encoding: Chunked on HTTP 1.0 request > ---------------------------------------------- > > Key: COUCHDB-40 > URL: https://issues.apache.org/jira/browse/COUCHDB-40 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Environment: Irrelevant > Reporter: Kore Nordmann > Attachments: patch-src_couchdb_couch_httpd_erl > > > The following request: > > DELETE /test HTTP/1.0 > > Host: localhost > is responded like: > > HTTP/1.0 404 Object Not Found > > Transfer-Encoding: chunked > > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > > Date: Tue, 15 Apr 2008 20:39:07 GMT > > Content-Type: text/plain;charset=utf-8 > > > > 28 > > {"error":"not_found","reason":"missing"} > > 0 > while chunked transfer-encoding is only supported by HTTP 1.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.