Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3474

Make mgnl:resource referenceable to support transition to JCR 2.0

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Neutral
    • None
    • 4.4.1
    • core

    Description

      Magnolia defines mgnl:resource as

      nt:resource is in turn defined in JCR 1.0 as

      [nt:resource] > mix:referenceable
      - jcr:encoding     (STRING)
      - jcr:mimeType     (STRING) mandatory
      - jcr:data         (BINARY) mandatory primary
      - jcr:lastModified (DATE)   mandatory IGNORE
      

      However JCR 2.0 changes this definition to:

      [nt:resource] > mix:mimeType, mix:lastModified
      primaryitem jcr:data
      - jcr:data (BINARY) mandatory
      

      so we need to add mix:referenceable to mgnl:resource explicitly to keep UUIDs on the binary assets.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR