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

Stale ETags are re-used for _local docs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0, 1.7.0
    • Component/s: HTTP Interface
    • Labels:
      None

      Description

      CouchDB re-uses the same ETags for _local documents even when the content of the _local document has changed, meaning that clients who cache based on the ETag may end up with permanently stale content. To reproduce the bug, it's simply:

      1. Create a _local doc
      2. Fetch the doc, ETag is "0-1"
      3. Delete the database (or the _local doc)
      4. Recreate the database (or the _local doc), insert a changed _local doc
      5. Fetch the doc, ETag is still "0-1" and therefore the client may end up with a stale version.

      Here are related issues in PouchDB and WebKit for further details:

        Attachments

          Activity

            People

            • Assignee:
              garren Garren Smith
              Reporter:
              nolanlawson Nolan Lawson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: