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

Parallel deletion of jobs from the ListView may lead to NPE errors

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A report from Coverity:

      *** CID 1222626:  Dereference null return value  (NULL_RETURNS)
      /src/main/java/hudson/model/ListView.java: 334 in hudson.model.ListView.doRemoveJobFromView(java.lang.String)()
      328         @RequirePOST
      329         public HttpResponse doRemoveJobFromView(@QueryParameter String name) throws IOException, ServletException {
      330             checkPermission(View.CONFIGURE);
      331             if(name==null)
      332                 throw new Failure("Query parameter 'name' is required");
      333
      >>>     CID 1222626:  Dereference null return value  (NULL_RETURNS)
      >>>     Assigning: "item" = null return value from "resolveName".
      334             TopLevelItem item = resolveName(name);
      335             if (remove(item))
      336                 owner.save();
      337
      338             return HttpResponses.ok();
      339         }
      

        Attachments

          Activity

          oleg_nenashev Oleg Nenashev created issue -
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 156035 ] JNJira + In-Review [ 179188 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels newbie-friendly
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          liketic Li Ke made changes -
          Assignee Li Ke [ liketic ]
          liketic Li Ke made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          danielbeck Daniel Beck made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

            People

            Assignee:
            liketic Li Ke
            Reporter:
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: