Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CC03720D for ; Sun, 30 Oct 2011 21:06:54 +0000 (UTC) Received: (qmail 92878 invoked by uid 500); 30 Oct 2011 21:06:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92809 invoked by uid 500); 30 Oct 2011 21:06:53 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 92612 invoked by uid 99); 30 Oct 2011 21:06:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Oct 2011 21:06:53 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Oct 2011 21:06:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 40321328512 for ; Sun, 30 Oct 2011 21:06:32 +0000 (UTC) Date: Sun, 30 Oct 2011 21:06:32 +0000 (UTC) From: "Jan Lehnardt (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <106303307.38848.1320008792264.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-676) trailing slash in path cannot be recovered by external process MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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