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

Fix elasticsearch indexing of property 'ecm:proxyTargetId' for proxies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021.0
    • Fix Version/s: 10.10-HF62, 2021.21
    • Component/s: Elasticsearch
    • Release Notes Summary:
      The property 'ecm:proxyTargetId' is indexed in Elasticsearch for proxies.
    • Backlog priority:
      850
    • Sprint:
      nxplatform #62
    • Story Points:
      3

      Description

      When a proxy (publication) is indexed in elasticsearch, the ecm:proxyTargetId property (UUID of version the proxy points to) is not stored, making it impossible to search for proxies pointing to a version.

      See JSON representation from elasticsearch of a proxy pointing to a version:

      {
        "_index" : "nuxeo-0005",
        "_type" : "doc",
        "_id" : "7efba3a0-3925-43b2-bb49-20e8fdce168e",
        "_version" : 1651845798154350,
        "found" : true,
        "_source" : {
          "ecm:repository" : "default",
          "ecm:uuid" : "7efba3a0-3925-43b2-bb49-20e8fdce168e",
          "ecm:name" : "Pic1",
          "ecm:title" : "Pic1",
          "ecm:path" : "/default-domain/sections/Section_NXP/Pic1",
          "ecm:path@level1" : "default-domain",
          "ecm:path@level2" : "sections",
          "ecm:path@level3" : "Section_NXP",
          "ecm:path@level4" : "Pic1",
          "ecm:path@depth" : 5,
          "ecm:primaryType" : "Picture",
          "ecm:parentId" : "7b0ff47d-b343-4525-a7ec-f6fd179ec1dc",
          "ecm:currentLifeCycleState" : "project",
          "ecm:proxyVersionableId" : "054433e3-2fac-45af-9707-26db27b37142",
          "ecm:isCheckedIn" : true,
          "ecm:isProxy" : true,
          "ecm:isTrashed" : false,
          "ecm:isVersion" : false,
          "ecm:isLatestVersion" : true,
          "ecm:isLatestMajorVersion" : false,
          "ecm:isRecord" : false,
          "ecm:hasLegalHold" : false,
          "ecm:mixinType" : [
            "Immutable",
            "Versionable",
            "NXTag",
            "Publishable",
            "Picture",
            "Commentable",
            "HasRelatedText",
            "Thumbnail"
          ],
          "ecm:tag" : [ ],
          "ecm:changeToken" : "0-0/7-0",
          "ecm:acl" : [
            "Administrator",
            "members"
          ],
          "ecm:binarytext" : "        ",
          "dc:creator" : "Administrator",
          "dc:modified" : "2022-05-07T01:43:01.843Z",
          "dc:lastContributor" : "Administrator",
          "dc:created" : "2022-05-07T01:43:01.782Z",
          "dc:title" : "Pic1",
          "dc:issued" : "2022-05-07T01:43:02.061Z",
          "dc:contributors" : [
            "Administrator"
          ],
          "picture:views" : [
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Square",
              "title" : "square",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            },
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Thumbnail size",
              "title" : "Thumbnail",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            },
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Small size",
              "title" : "Small",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            },
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Medium size",
              "title" : "Medium",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            },
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Full HD size",
              "title" : "FullHD",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            },
            {
              "filename" : "empty_picture.png",
              "width" : 480,
              "description" : "Original jpeg image",
              "title" : "OriginalJpeg",
              "content" : {
                "name" : "empty_picture.png",
                "mime-type" : "image/png",
                "digest" : "be1a7403018b6b893228afcf28e481a4",
                "length" : 4451
              },
              "height" : 330,
              "info" : {
                "colorSpace" : "sRGB",
                "depth" : 8,
                "width" : 480,
                "format" : "PNG",
                "height" : 330
              }
            }
          ],
          "picture:info" : { },
          "uid:major_version" : 0,
          "uid:minor_version" : 1,
          "imd:user_comment" : "Screenshot",
          "imd:xresolution" : 144,
          "imd:yresolution" : 144,
          "file:content" : {
            "name" : "NuxeoHoodies-Group3.png",
            "mime-type" : "image/png",
            "digest" : "4b2c2ca90ee1ed5f3af7bd3db37bbb0f",
            "length" : 3233872
          },
          "common:icon" : "/icons/image.gif"
        }
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: