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

Configuration via sling:OsgiConfig nodes does not support all types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • JCR Installer 3.1.2
    • None
    • Installer
    • None

    Description

      Most notably, the common "service.ranking" needs to be an Integer, while the jcr property mapping only allows for "Long" types at the moment. The problem is that JCR has a smaller set of property types than the OSGi config admin (JCR: String, Boolean, Long, Double, Decimal; OSGi: String, Boolean, Long, Integer, Float, Double, and probably more differences...).

      Similarly to properties files (which do it in the value like 'service.ranking=I"-10000"' with I=Integer), there must be a way to explicitly specify the type regardless of the JCR type. For example, encoding it in the property name like "service.ranking

      {int}

      ".

      Attachments

        1. SLING-2477.patch
          16 kB
          Ian Boston

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexander.klimetschek Alexander Klimetschek
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: