You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Lehnardt (Closed) (JIRA)" <ji...@apache.org> on 2011/10/30 22:06:32 UTC
[jira] [Closed] (COUCHDB-676) trailing slash in path cannot be
recovered by external process
[ https://issues.apache.org/jira/browse/COUCHDB-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Lehnardt closed COUCHDB-676.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.3
1.2
> trailing slash in path cannot be recovered by external process
> --------------------------------------------------------------
>
> Key: COUCHDB-676
> URL: https://issues.apache.org/jira/browse/COUCHDB-676
> Project: CouchDB
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: 0.11
> Reporter: Andrew Straw
> Fix For: 1.2, 1.3
>
>
> 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 ( http://127.0.0.1:5984/test/_test/ ) and no trailing slash ( http://127.0.0.1:5984/test/_test ). 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira