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

ES not updated when document is versioned

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 8.10-HF16, 9.3
    • Component/s: Elasticsearch
    • Release Notes Summary:
      The document restored from a previous version is correctly indexed in Elasticsearch
    • Backlog priority:
      900
    • Sprint:
      nxcore 9.3.6
    • Story Points:
      3

      Description

      Reproduction case:

      • create a document
      • edit it, set its description to this is v1 and minor version it
      • edit it again, set its description to this is v2 and minor version it
      • check what is in docbase and in ES for this doc, get its UUID, curl -u Administrator:Administrator -O http://localhost:8080/nuxeo/api/v1/id/6bab6c4c-029d-4b42-aa18-d890a3b9561f/@rendition/xmlExport and curl localhost:9200/nuxeo/doc/6bab6c4c-029d-4b42-aa18-d890a3b9561f | python -m json.tool > esExport – both representations will have this is v2 in the dc:description
      • restore the archived version for 0.1
      • check docbase and ES again, the ES representation will have this is v1
      • reindex the document in ES
      • check the ES representation, it will have this is v2

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h