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

teamconcert Breaks the UI and prevents Job configuration from being saved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • teamconcert-plugin
    • None
    • 2.277.x
      teamconcert 2.2.0
      copyartifact 1.46

      Steps to reproduce:

      • Create a freestyle job, the UI shows up as broken after the SCM section

      • Add a CopyArtifact step (this step includes a dropdown)
      • Save (No error)
      • Edit the configuration when loading the page, we can see the JS errors shown below:

       

      • Save (Error)

       

      2021-03-22 09:42:42.200+0000 [id=369]   WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 4584a8c4-bd64-4e56-a2eb-ef262b03a972
      java.lang.ClassNotFoundException: ["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.DownstreamBuildSelector","hudson.plugins.copyartifact.LastBuildWithArtifactSelector","hudson.plugins.copyartifact.LastCompletedBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"]
              at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:2179)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:670)
      Caused: java.lang.IllegalArgumentException: Class ["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.DownstreamBuildSelector","hudson.plugins.copyartifact.LastBuildWithArtifactSelector","hudson.plugins.copyartifact.LastCompletedBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"] is specified in JSON, but no such class found in classLoader hudson.PluginManager$UberClassLoader
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:675)

      The error above is misleading as you can think that the plugin causing the issue is the CopyArtifact plugin, but it is not, as the problem comes from the selector not being correctly applied.

       

      The problem disappears when you disable the `teamconcert` plugin

        1. screenshot_644.png
          67 kB
          Manuel Cardenas
        2. screenshot_645.png
          91 kB
          Manuel Cardenas
        3. screenshot_646.png
          41 kB
          Manuel Cardenas

            Unassigned Unassigned
            mcardenasblanco Manuel Cardenas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: