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

Use rendition variants to isolate non-versionable stored renditions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF01, 8.1
    • Component/s: Renditions

      Description

      Currently the per-user renditions are using ACLs to isolate renditions. This is not ideal because:

      • it makes the documents visible instead of being an implementation detail of the rendition service,
      • it makes an Administrator use the rendition from a random user if one exists.

      Instead of ACLs, use an explicit field (renditionVariant) in the rendition to discriminate. For per-user rendition we configure the rendition provider with <variantPolicy>user</variantPolicy> and then the rendition variant is computed as user:bob or administratoruser: in case the user is an Administrator.

      A StoredRenditionManager interface is also introduced in order to configure how to create (createStoredRendition) and find (findStoredRendition) a stored rendition in the platform if the default is not enough. It's used with the following extension point:

        <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService" point="storedRenditionManagers">
          <storedRenditionManager class="com.example.MyStoredRenditionManager" />
        </extension>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: