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

Wrong permission check for views

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-ng-plugin
    • None
    • Jenkins 2.263.4
      Analysis Model API Plugin 9.8.1
      warnings-ng-plugin 8.10.1
    • 9.2.0

      A user wants to edit a view but an exception is being raised:

      2021-03-15 09:42:54.238+0000 [id=6228646]       WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID a0829af4-6537-4b8a-8fc9-61ef9559b7c8
      java.lang.IllegalArgumentException: No enum constant io.jenkins.plugins.analysis.core.util.IssuesStatistics.StatisticProperties.
              at java.lang.Enum.valueOf(Enum.java:238)
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:733)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
              at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:843)
              at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:793)
              at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn from {"name":"# Issues","type":"","selectTools":false,"tools":{"id":""},"stapler-class<span class="code-quote">":"io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn","$class<span class="code-quote">":"io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn"}
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
              at hudson.model.Descriptor.newInstance(Descriptor.java:598)
      Caused: java.lang.Error: Failed to instantiate class io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn from {"name":"# Issues","type":"","selectTools":false,"tools":{"id":""},"stapler-class<span class="code-quote">":"io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn","$class<span class="code-quote">":"io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn"}
              at hudson.model.Descriptor.newInstance(Descriptor.java:606)
              at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1075)
              at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1037)
              at hudson.util.DescribableList.rebuildHetero(DescribableList.java:208)
              at hudson.model.ListView.submit(ListView.java:462)
              at hudson.model.View.doConfigSubmit(View.java:1014)
              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
              at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
              at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
              at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
              at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
      

      I cannot finde "analysis core plugin" in the list of installed plugins. I've added related version infos though.

            drulli Ulli Hafner
            maial Alexander Mai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: