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

Malformed open_revs parm results in a 500

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      The open_revs parameter supports only a list of revs, or the string "all". If you pass it anything other than that (such as true) the system responds with a 500.

      curl https://localhost/db1/doc1?open_revs=true

      {"error":"unknown_error","reason":"function_clause","ref":1210790983}

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user rnewson opened a pull request:

        https://github.com/apache/couchdb-couch/pull/116

        Throw if parse_revs is not a list

        COUCHDB-2845

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/cloudant/couchdb-couch 2845-open-revs

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/couchdb-couch/pull/116.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #116


        commit 33bc0608602f100527d1e00d8b3dbedf938647dd
        Author: Robert Newson <rnewson@apache.org>
        Date: 2015-10-08T12:12:09Z

        Throw if parse_revs is not a list

        COUCHDB-2845


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user rnewson opened a pull request: https://github.com/apache/couchdb-couch/pull/116 Throw if parse_revs is not a list COUCHDB-2845 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch 2845-open-revs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/116.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #116 commit 33bc0608602f100527d1e00d8b3dbedf938647dd Author: Robert Newson <rnewson@apache.org> Date: 2015-10-08T12:12:09Z Throw if parse_revs is not a list COUCHDB-2845
        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user rnewson opened a pull request:

        https://github.com/apache/couchdb-chttpd/pull/80

        Call parse_revs

        COUCHDB-2845

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/cloudant/couchdb-chttpd 2845-open-revs

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/couchdb-chttpd/pull/80.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #80


        commit 76831000a6ea31313ea634d6b4ac2142e5f4a8e5
        Author: Robert Newson <rnewson@apache.org>
        Date: 2015-10-08T12:14:02Z

        Call parse_revs

        COUCHDB-2845


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user rnewson opened a pull request: https://github.com/apache/couchdb-chttpd/pull/80 Call parse_revs COUCHDB-2845 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-chttpd 2845-open-revs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-chttpd/pull/80.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #80 commit 76831000a6ea31313ea634d6b4ac2142e5f4a8e5 Author: Robert Newson <rnewson@apache.org> Date: 2015-10-08T12:14:02Z Call parse_revs COUCHDB-2845
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 33bc0608602f100527d1e00d8b3dbedf938647dd in couchdb-couch's branch refs/heads/master from Robert Newson
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=33bc060 ]

        Throw if parse_revs is not a list

        COUCHDB-2845

        Show
        jira-bot ASF subversion and git services added a comment - Commit 33bc0608602f100527d1e00d8b3dbedf938647dd in couchdb-couch's branch refs/heads/master from Robert Newson [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=33bc060 ] Throw if parse_revs is not a list COUCHDB-2845
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/couchdb-couch/pull/116

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb-couch/pull/116
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 76831000a6ea31313ea634d6b4ac2142e5f4a8e5 in couchdb-chttpd's branch refs/heads/master from Robert Newson
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=7683100 ]

        Call parse_revs

        COUCHDB-2845

        Show
        jira-bot ASF subversion and git services added a comment - Commit 76831000a6ea31313ea634d6b4ac2142e5f4a8e5 in couchdb-chttpd's branch refs/heads/master from Robert Newson [ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=7683100 ] Call parse_revs COUCHDB-2845
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/couchdb-chttpd/pull/80

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb-chttpd/pull/80
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f4993f3ffa91d6d4b8ab040f65feb2b5371e39e8 in couchdb's branch refs/heads/1.x.x from Robert Newson
        [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=f4993f3 ]

        Throw if parse_revs is not a list

        COUCHDB-2845

        Show
        jira-bot ASF subversion and git services added a comment - Commit f4993f3ffa91d6d4b8ab040f65feb2b5371e39e8 in couchdb's branch refs/heads/1.x.x from Robert Newson [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=f4993f3 ] Throw if parse_revs is not a list COUCHDB-2845

          People

          • Assignee:
            Unassigned
            Reporter:
            rnewson Robert Newson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development