Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1537

Result of show function incorrectly cached after login

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.1.1, 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      The ETag for a show/list function includes only the user's role. When not logged in, the user_ctx.roles defaults to []. When logged in as a user, but one with no roles, user_ctx.roles is also []. We return the same ETag, and thus the response post-login is a 304 response.

      Including the user name will fix this, as it defaults to 'null', which cannot collide with any logged-in user name.

        Attachments

          Activity

            People

            • Assignee:
              rnewson Robert Newson
              Reporter:
              rnewson Robert Newson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: