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

Improve behaviour when delimiter is set but the type is not

    XMLWordPrintableJSON

    Details

      Description

      When configuring property values with a delimiter, it is expected that the property is an array. Otherwise, the delimited does not make sense IMO.

      Assuming I have exporter PROP=foo,bar.

      If I configure interpolation for a property value as

      prop="$[env:PROP;delimiter=,]"

      At runtime it get interpolated to prop<String> = foo,bar, which is clearly not what I expected. The correct syntax is

      prop="$[env:PROP;type=String[];delimiter=,]"

      after which the interpolation result is indeed {{ prop<String[]> = [foo, bar] }}.

      There are a number of ways this could be improved

      • fail interpolation with an exception
      • log a WARN/ERROR message
      • assume that if a delimiter is present but the type is not, the type is String[], and not String.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rombert Robert Munteanu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: