Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68801

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 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

            Unassigned Unassigned
            bzzitsme Temirlan Dyussyumbayev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: