Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-84

Reduce with group=true and count set to less than the # of returned rows, fails to close the json array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.8.1
    • HTTP Interface
    • None

    Description

      Running a request with group=true and a count which limits the amount of rows returned, results in invalid JSON (and a 500 error being logged by CouchDB). The problems has been reproduced in a test case attached to this ticket.

      The fix may be a little iffy (I changed some code that was probably like it was for a reason...) so please review before applying the patch.

      Attachments

        1. group_view_count.diff
          2 kB
          John Christopher Anderson
        2. missing_json_end.diff
          1 kB
          John Christopher Anderson

        Activity

          People

            damienkatz Damien Katz
            jchris John Christopher Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: