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

uid:major_version and uid:minor_version are null when sending queries to elasticsearch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10, 8.10, 9.2
    • Fix Version/s: 7.10-HF33, 8.10-HF17, 9.3
    • Component/s: CMIS
    • Release Notes Summary:
      Non-prefixed properties are supported in Elasticsearch requests
    • Tags:
    • Backlog priority:
      500

      Description

      1. install 7.10
      2. turn on sending CMIS queries to Elasticsearch by adding the following line to nuxeo.conf:
        org.nuxeo.cmis.elasticsearch=true
        
      3. start Nuxeo
      4. create a workspace
      5. create a document
      6. increase the version of the document
      7. connect to Nuxeo using CMIS Workbench
      8. run the following queries:
        SELECT major_version FROM File
        SELECT minor_version FROM File
        

        In both cases the value is empty whereas it is correctly returned when queries are not sent to Elasticsearch (parameter to false).

      9. exporting the document shows the property exists and has a value
        <?xml version="1.0" encoding="UTF-8"?>
        
        <document repository="default" id="4fd3a0ed-3061-4004-b0c7-a918a5f31fc0">
          <system>
            <type>File</type>
            <path>default-domain/workspaces/testWorkspaceSUPNXP21241/oaizjeioazje</path>
            <lifecycle-state>project</lifecycle-state>
            <lifecycle-policy>default</lifecycle-policy>
            <facet>Versionable</facet>
            <facet>Publishable</facet>
            <facet>Commentable</facet>
            <facet>HasRelatedText</facet>
            <facet>Downloadable</facet>
            <access-control>
              <acl name="inherited">
                <entry principal="Administrator" permission="Everything" grant="true"/>
                <entry principal="members" permission="Read" grant="true"/>
              </acl>
            </access-control>
          </system>
          <schema xmlns:uid="http://project.nuxeo.com/geide/schemas/uid/" name="uid">
            <uid:major_version><![CDATA[1]]></uid:major_version>
            <uid:minor_version><![CDATA[0]]></uid:minor_version>
          </schema>
          <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file"></schema>
          <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common">
            <common:icon><![CDATA[/icons/file.gif]]></common:icon>
          </schema>
          <schema xmlns:files="http://www.nuxeo.org/ecm/schemas/files/" name="files">
            <files:files/>
          </schema>
          <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore">
            <dc:description><![CDATA[hoho !]]></dc:description>
            <dc:creator><![CDATA[Administrator]]></dc:creator>
            <dc:modified><![CDATA[2017-09-25T11:29:38.000Z]]></dc:modified>
            <dc:lastContributor><![CDATA[Administrator]]></dc:lastContributor>
            <dc:created><![CDATA[2017-09-25T10:30:21.995Z]]></dc:created>
            <dc:title><![CDATA[oaizjeioazje]]></dc:title>
            <dc:subjects/>
            <dc:contributors>
              <item><![CDATA[Administrator]]></item>
            </dc:contributors>
          </schema>
          <schema xmlns:relatedtext="http://www.nuxeo.org/ecm/schemas/relatedtext/" name="relatedtext">
            <relatedtext:relatedtextresources/>
          </schema>
        </document>
        

        Attachments

          Issue Links

            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 - 2 days
                  2d