Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17262

Removing repository does not remove tasks specific to the removed repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.12.0
    • Fix Version/s: 3.13.0
    • Component/s: Scheduled Tasks
    • Labels:
    • Story Points:
      1

      Description

      Removing repository does not remove tasks specific to the removed repository. This cause the task to fail with a NullPointerException.

      2018-06-01 16:38:21,064+0100 WARN  [quartz-5-thread-8] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task 63617932-5bd9-4d90-9c39-3bd04539cd07 : 'rebuild search rubygems-org' [repository.rebuild-index] execution failure
      java.lang.NullPointerException: null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:882)
      	at org.sonatype.nexus.repository.RepositoryTaskSupport.findRepositories(RepositoryTaskSupport.java:96)
      	at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:67)
      

      Steps to Reproduce

      • Create a rebuild index task on existing repo.
      • Remove that repository
      • Run the rebuild index task

      Expected Behaviour

      Either remove the task linked to the removed repository or provide an error when task is run that explains the repository has been deleted (instead of the NullPointerException) .

       

        Attachments

          Activity

            People

            Assignee:
            natemcafee Nate McAfee
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch
            Team:
            Nexus - Core
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title