View Plan as Java or YAML specs fails with error "Repository with ID does not exist"

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 8.2.4
    • Component/s: Bamboo Specs
    • None
    • 3
    • Severity 3 - Minor
    • 6

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a plan in Bamboo having 2 different linked repositories.
      2. Create one source code checkout task and add checkout for both the repositories in the same task.
      3. Delete one repository from the repositories tab for this plan.
      4. Click on Actions > View plan as Java Specs or Actions > View plan as YAML

      Expected Results

      The plan's metadata should get displayed.

      Actual Results

      Below error is throw on the Bamboo UI

      java.lang.IllegalStateException: Repository with ID 999999999 does not exist
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:576)
      	at com.atlassian.bamboo.task.export.AbstractRepositoryAwareTaskExporter.getNonDefaultRepositoryRef(AbstractRepositoryAwareTaskExporter.java:74)
      	at com.atlassian.bamboo.task.export.AbstractRepositoryAwareTaskExporter.getNonDefaultRepositoryRef(AbstractRepositoryAwareTaskExporter.java:58)
      	at com.atlassian.bamboo.plugins.vcs.task.export.VcsCheckoutTaskExporter.lambda$toSpecsEntity$0(VcsCheckoutTaskExporter.java:105)
      

      Workaround

      Goto Source code checkout task and look for duplicate repositories checkouts which are present and remove one of them, see below attachment as one of the example.

      Note : The deleted repository is replaced with the default repository in the example above

        1. screenshot-1.png
          62 kB
          Shashank Kumar

              Assignee:
              Unassigned
              Reporter:
              Shashank Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: