Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4183

Jcr Installer Provider only supports storing array values for OSGi Component Properties (for sling:OsgiConfig resources) but not java.util.Vector

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: JCR Installer 3.1.8
    • Fix Version/s: None
    • Component/s: Installer
    • Labels:
      None

      Description

      The OSGi Compendium 4.3.0, $105.14.3.13 defines two storage formats for multivalue entries: one is vector and the other one is array.

      As long as a configuration is maintained via the Felix Webconsole, it will stick to the data format being given in the metatype manifest (through the cardinality attribute).
      If the JCR Installer is used to deploy the OSGi configuration it will always use array, in case the property is a multivalue property in the JCR (https://github.com/apache/sling/blob/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/ConfigNodeConverter.java#L99)

      In the best case the JCR Installer should evaluate the metatype manifest as well. Or it should support {{Vector}}s through some special prefix on a multivalue property name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: