Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-363

Return HTTP 413 when server rejects document due to size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.6.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 22
    • 3

    Description

      When a document exceeds the server size limit (20MB), SG should return a 413 instead of 500.  This handling was already in place for gocouchbase/gomemcached in ErrorAsHTTPStatus - it needs to get added there for gocb.

      In the case where the xattr exceeds 1MB, it still makes sense to return 500, as that's more of an internal error (i.e. the request payload is not necessarily too big).

       

      Attachments

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

        Activity

          People

            jacques.rascagneres Jacques Rascagneres
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty