Symbol framework doesn't work properly if plugin's artifactId contains word "plugin-"

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 2.362

      Symbol framework doesn't work properly if plugin's artifactId contains word "plugin-".

      Pattern of symbol framework: 

      <l:icon src="symbol-symbolName plugin-yourArtifactId" />

      Under the hood it uses this method Functions#extractPluginNameFromIconSrc which finds word starting with "plugin-" and then replaces all occurrences to "".

      For instance, if your plugin's artifactId will be plugin-test, the pattern will look like:

      <l:icon src="symbol-symbolName plugin-plugin-test" />

      and then Functions#extractPluginNameFromIconSrc will replace both "plugin-" occurrences with "" and only test will be left.

      So instead of searching image from plugin-test, it will be searching image from test which doesn't exist.

      Solution would be to use replaceFirst instead of replace in Functions#extractPluginNameFromIconSrc

            Assignee:
            Unassigned
            Reporter:
            Temirlan Dyussyumbayev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: