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

Calling a non existing view returns 500 and not 404

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • HTTP Interface
    • None
    • Linux i386, glibc 2.7

    Description

      CouchDB built from trunk r. 649204

      When trying to call a non-existing view document the server returns an HTTP 500 message.
      It is expected that a 404 message would be returned instead.

      Example:

      GET /porcupine/_view/wikipage/hierarchy?startkey=%5B%22Home%22%5D&endkey=%5B%22Home%22%2C2%5D HTTP/1.1
      Date: Thu, 17 Apr 08 23:41:36 +0300

      HTTP/1.1 500 Internal Server Error
      Transfer-Encoding: chunked
      Server: MochiWeb/1.0 (Any of you quaids got a smint?)
      Date: Thu, 17 Apr 2008 20:41:36 GMT
      Content-Type: text/plain;charset=utf-8

      9a
      {"error":"error","reason":"nocatch,{not_found,missing,\n [

      {couch_db,open_doc_int,3}

      ,\n

      {couch_db,open_doc,3}

      ,\n

      {couch_view,start_update_loop,4}

      ]}"}
      0

      Attachments

        Activity

          People

            Unassigned Unassigned
            shahar.e Shahar Evron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: