Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31531

Document modification event fired even if document is not updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021
    • Fix Version/s: 10.10-HF71, 2023.0, 2021.34
    • Component/s: Audit
    • Release Notes Summary:
      The "Document updated" (documentModified) event is no longer audited if document was not dirty
    • Backlog priority:
      700
    • Sprint:
      nxplatform #81
    • Story Points:
      5

      Description

      Steps to Reproduce

      1. Run a PUT request on a document but do not update any properties, ex.
        curl -X PUT 'http://localhost:8080/nuxeo/api/v1/path/<path_to_document>' -H 'Content-type: application/json' -u Administrator:Administrator -d '{"entity-type":"document"}'
        
      2. Look at the history tab of the document. Notice that a documentModified event was fired
      3. Look at the dc:modified date of the document. Notice that it is not updated

      Expected Results: Document modification event should be fired when document is actually modified

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: