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

Switch to ConfigurationHandler which supports user-friendly float/double values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Installer Core 3.8.10
    • None
    • Installer
    • None

    Description

      Currently the .config format only supports float/double values in the IEEE 754 floating-point bit layout (described in https://docs.oracle.com/javase/7/docs/api/java/lang/Float.html#intBitsToFloat%28int%29 and https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html#longBitsToDouble(long) respectively). With FELIX-5306 this has been fixed for the ConfigurationHandler in package org.apache.felix.utils.properties (https://github.com/apache/felix/blob/trunk/utils/src/main/java/org/apache/felix/utils/properties/ConfigurationHandler.java). The OSGi installer still uses the ConfigurationHandler from org.apache.felix.cm.file (https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/file/ConfigurationHandler.java), which seems to be deprecated and which has not received user-friendly float/double support. Therefore the OSGi Installer should be updated to use the latest version from Felix Utils (https://github.com/apache/sling-org-apache-sling-installer-core/blob/0a34e33dd26092437be5180e34979abbf9a88300/src/main/java/org/apache/sling/installer/core/impl/InternalResource.java#L257).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: