Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
Installer Core 3.8.10
-
None
-
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
- relates to
-
FELIX-5306 User friendly syntax for floats and doubles in FileInstall
- Resolved
-
SLING-7787 Support official JSON format for configurations
- Closed