[RTFACT-14863] GroovyRunnerImpl#getScripts should ignore the existence of the legacy reloadPlugins.groovy plugin Created: 29/Aug/17  Updated: 14/Mar/18  Resolved: 14/Mar/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Plugins
Affects Version/s: None
Fix Version/s: 5.10.0

Type: Bug Priority: High
Reporter: Uriah Levy Assignee: Roman Gurevitch (Inactive)
Resolution: Fixed Votes: 1
Labels: None


The existence of the reloadPlugins.groovy plugin in the plugins dir causes Artifactory to reload all the plugins in an endless loop. The reason being the reloadPlugins.groovy file is never actually loaded due to a deliberate check in the code on versions 5.x. This causes the actual list of loaded scripts to always have a different size than the list of plugins in the 'plugins' dir, tricking artifactory to think it should reload the plugins every time the ScriptReloader thread wakes up.

See GroovyRunnerImpl#getScripts

Except being an annoyance, some plugins can behave really badly if they are reloaded repeatedly. This should be handled with high priority..

The overall problem is not just the reloadPlugins plugin, the same situation would happen if a plugin (any plugin) fails to load and the groovy file is kept in the plugins dir.

Generated at Wed Aug 12 01:17:07 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.