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

Server responds 400 "Exceeded rewrite recursion limit" indefinitely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.2, 1.3
    • HTTP Interface
    • None

    Description

      Running 1.2.1 on Windows 7 as a service.
      hosts file includes "127.0.0.1 grimwire.local"

      CouchDB conf includes vhosts entries:
      grimwire.local:5984 /grimwire/_design/grimwire/_rewrite
      grimwire.local:5984/local /grimwire/_design/local/_rewrite

      'grimwire' design doc rewrites:
      [

      { "from": "", "to": "index.html", "method": "GET" }

      ,

      { "from": "*", "to": "*" }

      ]

      'local' design doc rewrites:
      [

      { "from":"", "to":"index.html", "method":"GET" }

      ,

      { "from":"/posts", "to":"_list/wallpost/wallpost-by-created_at", "method":"GET" }

      ,

      { "from":"/posts", "to":"_update/wallpost", "method":"POST" }

      ,

      { "from":"/posts/:id", "to":"_show/wallpost/:id", "method":"GET" }

      ,

      { "from":"/posts/:id", "to":"_update/wallpost/:id", "method":"PUT" }

      ,

      { "from":"*", "to":"*" }

      ]

      Problem:
      The requests work as expected for some unknown period, then begin to respond with a 400 status and the "Exceeded rewrite recursion limit" error message. Changing the rewrites rules for both applications, including setting them to empty arrays, had no effect.

      The problem was solved by restarting the CouchDB service.

      Attachments

        1. resolve_spurious_rewrite_limit_errors.patch
          0.8 kB
          Christopher Bonhage

        Activity

          People

            Unassigned Unassigned
            pfraze Paul Frazee
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: