Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1364

Fix decoding of errors in SubDocGetRequest

    XMLWordPrintable

Details

    • Task
    • Resolution: Resolved
    • Major
    • 2.4.11
    • None
    • None
    • None
    • 2
    • SDK32, SDK34, SDK36

    Description

      After a top-level INVALID_REQUEST error, it was trying to decoding the json error message into a status, valueLength and value for each command. The status is invalid, and the valueLength is too long, resulting in an exception being thrown from body.readBytes(value, 0, valueLength), resulting in a DecodingFailureException. As I don't know the exact set of top-level rawStatus = status(body) that do not have the list of values returned, instead I check that the status for the 'value' element is 7b 22 "{ (start of a json error message).

      Attachments

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

        Activity

          People

            graham.pople Graham Pople
            michael.reiche Michael Reiche
            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