[ 
https://issues.apache.org/jira/browse/COUCHDB-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573079#comment-13573079
 ] 

Jeff Charette commented on COUCHDB-1651:
----------------------------------------

For what it is worth I started seeing this issue randomly when I pushed to 
production on iriscouch.com.  The only difference between the environments is 
that I am running 1.2.0 locally and iriscouch is running 1.2.1.  When this is 
triggered it slowly consumes random links across my whole app.

Here are my rewrites:
{code:title=rewrites|borderStyle=solid}
module.exports = [
        {from: '/menu/*', to: '../../../menu/*'},
    {from: '/static/*', to: 'static/*'},
        {from: '/img/*', to: '/static/img/*'},
        {from: '/js/*', to: '/static/js/*'},
        {from: '/css/*', to: '/static/css/*'},
        {from: '/_*', to: '../../../_*'},
        {from: '/modules.js', to: 'modules.js'},
        {from: '/admin', to: '_show/form/create_doc'},
        {from: '/query', to: '_list/query/by_type'},
        {from: '/queryedit', to: '_list/queryedit/by_type'},
        {from: '/edit/', to: '_list/edit/by_page', 'query': 
{'include_docs':'true', 'id':'index'}},
        {from: '/edit/:page', to: '_list/edit/by_page', 'query': 
{'include_docs':'true', 'id':':page'}},
        {from: '/', to: '_list/page/by_page', 'query': {'include_docs':'true', 
'id':'index'}},
        {from: '/:page', to: '_list/page/by_page', 'query': 
{'include_docs':'true', 'id':':page'}}
];
{code}
                
> Server responds 400 "Exceeded rewrite recursion limit" indefinitely
> -------------------------------------------------------------------
>
>                 Key: COUCHDB-1651
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1651
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Paul Frazee
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to