CouchDB
  1. CouchDB
  2. COUCHDB-154

Support gzip content in POST requests

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Component/s: HTTP Interface
    • Labels:
      None
    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      When sending large amounts of data to CouchDB it'd be nice to have support for Content-Encoding: gzip or Transfer-Encoding: gzip (in the client to server direction).

        Activity

        Ask Bjørn Hansen created issue -
        Paul Joseph Davis made changes -
        Field Original Value New Value
        Skill Level Regular Contributors Level (Easy to Medium)
        Dave Cottlehuber made changes -
        Assignee zmhassan [ zmhassan ]
        Hide
        Dave Cottlehuber added a comment -

        Hi Zak,

        Welcome

        I added you as a JIRA contributor which means you can accept / update tickets incl assigning to yourself, if this doesn't work poke me Dave Cottlehuber on IRC etc.

        Theres some existing, unfinished or slightly related work already out there, for example:

        https://github.com/lgerbarg/couchdb/tree/gzip-support & https://groups.google.com/forum/#!topic/mochiweb/u1wYFs25o3Q thread
        https://gist.github.com/archaelus/76455 may be useful, albeit wrong direction.

        Note that CouchDB uses an older (& custom) version of mochiweb so that we can continue to support older Erlang releases.

        I'm looking forwards to your tricky questions!

        A+
        Dave

        Show
        Dave Cottlehuber added a comment - Hi Zak, Welcome I added you as a JIRA contributor which means you can accept / update tickets incl assigning to yourself, if this doesn't work poke me Dave Cottlehuber on IRC etc. Theres some existing, unfinished or slightly related work already out there, for example: https://github.com/lgerbarg/couchdb/tree/gzip-support & https://groups.google.com/forum/#!topic/mochiweb/u1wYFs25o3Q thread https://gist.github.com/archaelus/76455 may be useful, albeit wrong direction. Note that CouchDB uses an older (& custom) version of mochiweb so that we can continue to support older Erlang releases. I'm looking forwards to your tricky questions! A+ Dave
        Zak Hassan made changes -
        Comment [ Yea it works. Thank you.

        ]
        Zak Hassan made changes -
        Comment [ Hi,

        Would like to tackle this issue. Assign this one to me.


        :>

        Thanks,
        Zak
        github: http://github.com/zmhassan
        ]
        Zak Hassan made changes -
        Assignee zmhassan [ zmhassan ]
        Hide
        Adam Kocoloski added a comment -

        Robert Newson tossed a commit of mine up at https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=899a919 that adds this capability, but there's a follow-on commit to handle errors during decompression. I'll update the branch shortly.

        Show
        Adam Kocoloski added a comment - Robert Newson tossed a commit of mine up at https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=899a919 that adds this capability, but there's a follow-on commit to handle errors during decompression. I'll update the branch shortly.
        Hide
        ASF subversion and git services added a comment -

        Commit 3186e160458582b82a350baf5ca3a91eea07eb89 in branch refs/heads/154-feature-gzip-post from Adam Kocoloski
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=3186e16 ]

        Wrap decompression in a try/catch, report 400

        COUCHDB-154

        Show
        ASF subversion and git services added a comment - Commit 3186e160458582b82a350baf5ca3a91eea07eb89 in branch refs/heads/154-feature-gzip-post from Adam Kocoloski [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=3186e16 ] Wrap decompression in a try/catch, report 400 COUCHDB-154
        Hide
        Adam Kocoloski added a comment -

        OK, branch updated, should be good to go.

        Show
        Adam Kocoloski added a comment - OK, branch updated, should be good to go.
        Robert Newson made changes -
        Assignee Robert Newson [ rnewson ]
        Hide
        ASF subversion and git services added a comment -

        Commit 10a17682985af09d75006d97f8a61020e6218035 in branch refs/heads/154-feature-gzip-post from Adam Kocoloski
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=10a1768 ]

        Allows clients to send gzipped JSON bodies

        A request with a Content-Encoding other than "gzip" or "identity" will
        receive a 415 Unsupported Media Type response.

        COUCHDB-154

        Show
        ASF subversion and git services added a comment - Commit 10a17682985af09d75006d97f8a61020e6218035 in branch refs/heads/154-feature-gzip-post from Adam Kocoloski [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=10a1768 ] Allows clients to send gzipped JSON bodies A request with a Content-Encoding other than "gzip" or "identity" will receive a 415 Unsupported Media Type response. COUCHDB-154

          People

          • Assignee:
            Robert Newson
            Reporter:
            Ask Bjørn Hansen
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:

              Development