Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4431

Arrays are loaded as string from cfg file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: configadmin-1.8.0, fileinstall-3.2.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      When we have a configuration file with following contents:

      station.ids = [1,5,6]
      station.names = [Station1, Station2, Station3]

      These properties are given as a string in the service properties and not as an array if loaded with fileInstall.

      If these properties are configured from Config Admin Felix Console, then the properties are stored as an array in the service properties.
      The cardinality is Integer.MIN_MAX

        Activity

        Hide
        gnt Guillaume Nodet added a comment -

        The ConfigAdmin syntax is supported for files with a ".config" extension.
        The reason is that the syntax is not compatible, so ".cfg" files are treated as strings and ".config" files with an extended syntax.

        Show
        gnt Guillaume Nodet added a comment - The ConfigAdmin syntax is supported for files with a ".config" extension. The reason is that the syntax is not compatible, so ".cfg" files are treated as strings and ".config" files with an extended syntax.

          People

          • Assignee:
            Unassigned
            Reporter:
            adezeghe Alec de Zegher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development