CouchDB
  1. CouchDB
  2. COUCHDB-441

Finally implement pre-write-doc-edit handlers.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10
    • Fix Version/s: 0.10
    • Component/s: HTTP Interface
    • Labels:
      None

      Description

      It would be useful for auditing to have the identity of the user who inserted a new revision and the timestamp of the operation to be inserted in the document in the same way that the new revision number is.

      Doing this at the application level is not adequate since it would be readily spoofable and would bypass the authentication handler.

      There is a comment in couch_db:update_docs about generating new revision ids, but I couldn't quite comprehend what specific code was responsible for inserting the id into the document.

      1. COUCHDB-441.2.patch
        17 kB
        Jason Davies
      2. COUCHDB-441.3.patch
        21 kB
        Jason Davies
      3. COUCHDB-441.patch
        10 kB
        Paul Joseph Davis

        Activity

        Curt Arnold created issue -
        Paul Joseph Davis made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Paul Joseph Davis [ paul.joseph.davis ]
        Fix Version/s 0.10 [ 12313694 ]
        Resolution Won't Fix [ 2 ]
        Curt Arnold made changes -
        Summary Insert _user and _timestamp on document writes Mechanism for inserting user from user_ctx into documents on writes
        Curt Arnold made changes -
        Resolution Won't Fix [ 2 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Paul Joseph Davis made changes -
        Summary Mechanism for inserting user from user_ctx into documents on writes Finally implement pre-write-doc-edit handlers.
        Assignee Paul Joseph Davis [ paul.joseph.davis ]
        Affects Version/s 0.10 [ 12313694 ]
        Component/s HTTP Interface [ 12312234 ]
        Component/s Database Core [ 12312233 ]
        Paul Joseph Davis made changes -
        Attachment COUCHDB-441.patch [ 12415263 ]
        Jason Davies made changes -
        Attachment COUCHDB-441.2.patch [ 12415582 ]
        Jason Davies made changes -
        Attachment COUCHDB-441.3.patch [ 12416026 ]
        Jan Lehnardt made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Curt Arnold
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development