Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC1DC100B5 for ; Fri, 7 Feb 2014 23:53:23 +0000 (UTC) Received: (qmail 8120 invoked by uid 500); 7 Feb 2014 23:53:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 7973 invoked by uid 500); 7 Feb 2014 23:53:21 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 7904 invoked by uid 99); 7 Feb 2014 23:53:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 23:53:20 +0000 Date: Fri, 7 Feb 2014 23:53:20 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (COUCHDB-2054) Content-Encoding on requests is ignored; should decode or return 415 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-2054?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson resolved COUCHDB-2054. ------------------------------------ Resolution: Fixed Fix Version/s: 1.7.0 > Content-Encoding on requests is ignored; should decode or return 415 > -------------------------------------------------------------------- > > Key: COUCHDB-2054 > URL: https://issues.apache.org/jira/browse/COUCHDB-2054 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues)=20 > Components: HTTP Interface > Reporter: Jens Alfke > Fix For: 1.7.0 > > > CouchDB (as of 1.4) seems to ignore the "Content-Encoding" header on requ= ests, and just parses the request body with no decoding. This causes incorr= ect behavior =E2=80=94 most often it tries to parse the encoded data as JSO= N and will fail and return 400. > CouchDB should either decode the request body (e.g. unzip it), or else re= turn a 415 status. Decoding would be quite useful: requests with large JSON= bodies (like revs_diff or the POST form of all_docs) can have their size c= ut in half by gzip encoding. > HTTP 1.1 spec for Content-Encoding: > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11 -- This message was sent by Atlassian JIRA (v6.1.5#6160)