Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-13245

Omitting Node.Metadata annotation kills the loading of all plugins in AM

    XMLWordPrintable

    Details

      Description

      Bug description

      When loading a plugin which references a node that does not contain @Node.Metadata annotation, PluginLifecycle.notifyPluginsOfStartup will not complete loading all plugin files.

       

      Additionally, there is no mention of this exception in the logs, so it is difficult to find the culprit. 

      How to reproduce the issue

      1. Create a node using the maven archetype command 
      2. Remove the @Node.Metadata annotation
      3. Build and drop the node into AM
      4. Restart and find that not all plugins have been loaded (this is depending on which order the plugins were iterated over. PluginLifecycle.allPlugins is a set so you will see inconsistent behavior once AM starts depending on which plugins were loaded first)
      Expected behaviour
      An exception in the logs and a failure to start AM.
      Current behaviour
      No exception in the log, and inconsistent behavior when AM starts.

      Code analysis

       

      org.forgerock.openam.plugins.PluginLifecycle#notifyPluginsOfStartup
      
      

        Attachments

          Activity

            People

            phillcunnington Phill Cunnington
            Frank.Gasparovic Frank Gasparovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: