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

Fix document access through CMIS when the document holds obsolete facets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF24, 8.10-HF04, 9.1
    • Component/s: CMIS

      Description

      The problem is visible when Nuxeo Quota addon is installed.

      When a document is accessed through CMIS with a URL like

      /nuxeo/json/cmis/default/root?objectId=41dbf931-7403-4645-9801-53c7cb1699e6&cmisselector=object&filter=*&includeAllowableActions=true&includeRelationships=both&renditionFilter=*&includePolicyIds=true&includeACL=true&succinct=true
      

      a second call is done on

      /nuxeo/json/cmis/default/?cmisselector=typeDefinition&typeId=facet%3ADocumentsSizeStatistics}
      

      which will produce this exception

      {"exception":"invalidArgument","message":"No such type: facet:DocumentsSizeStatistics}"}
      

      Some filtering in org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyData.getFacets needs to be done to avoid this error.

        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 - 1 day
                  1d