couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <>
Subject [jira] Updated: (COUCHDB-676) trailing slash in path cannot be recovered by external process
Date Sat, 09 Oct 2010 01:19:01 GMT


Paul Joseph Davis updated COUCHDB-676:

    Skill Level: New Contributors Level (Easy)

> trailing slash in path cannot be recovered by external process
> --------------------------------------------------------------
>                 Key: COUCHDB-676
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: 0.11
>            Reporter: Andrew Straw
> I modified the example given in the ExternalProcesses wiki page to return exactly the
request line and queried the external process with both a trailing slash (
) and no trailing slash ( ). The request line is exactly
the same for these two cases.
> This is problematic because external processes may treat these cases differently. For
example, Django's CommonMiddleware class redirects any "path" to "path/" if there is a view
at "path/" but not at "path", which is usually the case for a default view of a Django app.
When using Django with couchdb-wsgi, this results in an infinite redirect loop because although
Django issues a redirect to "path/", couchdb-wsgi emits "path" as the path.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message