CouchDB
  1. CouchDB
  2. COUCHDB-1416

the requested_path that is passed to a show is wrong on a vhost with a path

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: HTTP Interface
    • Labels:
      None
    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      In a show or list, it is impossible to construct a full url that an end user could use to re-request the resource, given the various combinations of vhosts and rewrites.
      The major one is if the vhost contains a path component, this path information is not passed to the show at all.

      I have created three tests that highlight the condition, currently failing for one test, with the two passing to prevent regressions.

      The commit can be found here:

      https://github.com/ryanramage/couchdb/commit/e9417480e2ce160f359d9508dcec3d4e56045a60

      I have talked this over with JasonSmith and bennoitc on #couchdb and they asked me to write the tests and raise the jira.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Ryan Ramage
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development