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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.8.1
    • Component/s: HTTP Interface
    • Labels:
      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
          Chris Anderson
        2. missing_json_end.diff
          1 kB
          Chris Anderson

          Activity

            People

            • Assignee:
              damienkatz Damien Katz
              Reporter:
              jchris Chris Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: