Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-29715

Asymmetry in document REST API - can retrieve 10MB documents, but not upload them

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 6.5.0
    • 5.5.0
    • ns_server
    • None
    • Untriaged
    • Unknown

    Description

      The REST API for retrieving and uploading documents is used to support the GUI document editor.

      Right now, the REST API will return documents of any size to the client. It is limited, however, to uploads of only 1MB. This value is set in mochiweb_request.erl:

      % Maximum recv_body() length of 1MB
      -define(MAX_RECV_BODY, (1024*1024)).

      I tried changing the value to 20*1024*1024, and it appears to work fine in supporting document editing for any size of documents.

      While supporting very large receive payloads might conceivably cause a load on the server, it would be no different from the load imposed by sending those large documents to the client when requested.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ajit.yagaty Ajit Yagaty [X] (Inactive)
            eben Eben Haber
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty