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

Fix update of proxy's Picture metadata when a picture document is published before Picture properties are computed

    Details

    • Release Notes Summary:
      Proxy of version are now indexed when version received a system update
    • Backlog priority:
      800
    • Sprint:
      nxplatform #65
    • Story Points:
      5

      Description

      When a document of type Picture (or with the Picture facet) is created with an image file and is immediately published to a section, before the Picture metadata are computed (e.g. picture:views and picture:info), these properties in the proxy are not properly indexed in elasticsearch.

      As the publication must happen immediately after the image file is attached and before the picture view are generated, reproducing the issue manually using the Web UI is not really possible. Therefore I wrote a script that I attached to this ticket.

      It creates a Picture document with an image file and immediately publishes it. it will output the JSON from DB and elasticsearch of the version and the proxy in order to show the final issue, which is the proxy's picture:views and picture:info properties still have their default values indexed in elasticsearch and are different from their values in DB.

      • set up an environment with a 10.10 Nuxeo instance and an elasticsearch server
      • have an image file ready
      • update the 7 variables at the beginning of the script to match your test environment
      • run the script, follow instructions, and observe the JSON representations when requested

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.