Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-232

Test: Return HTTP 413 when server rejects document due to size

    XMLWordPrintable

Details

    Description

      From: https://issues.couchbase.com/browse/CBG-363

      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

            sridevi.saragadam Sridevi Saragadam (Inactive)
            daniel.petersen Daniel Petersen
            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