CouchDB
  1. CouchDB
  2. COUCHDB-676

trailing slash in path cannot be recovered by external process

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.11
    • Fix Version/s: 1.2, 1.3
    • Component/s: Infrastructure
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      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.

        Activity

        Andrew Straw created issue -
        Paul Joseph Davis made changes -
        Field Original Value New Value
        Skill Level New Contributors Level (Easy)
        Jan Lehnardt made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.2 [ 12315198 ]
        Fix Version/s 1.3 [ 12318350 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Straw
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development