Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22027

Internal server error appears when using the Repository Tag task

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 9.1.0, 8.2.7, 9.0.2
    • 9.0.1, 8.2.7
    • Tasks
    • None

    Description

      Issue Summary

      Internal server error appears when using the Repository Tag
      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a plan
      2. Add Repository Tag task
      3. Add the configuration and save
      4. try to view the configuration
      5. The internal server error appears

      Expected Results

      Configuration of the task appears

      Actual Results

      Internal server error appears

      URI: /build/admin/edit/editTask.action
      Context path:
      Servlet path: /build/admin/edit/editTask.action
      Path info:
      Query string: planKey=
      Stack Trace:
      
      java.lang.NumberFormatException: For input string: "defaultRepository"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Long.parseLong(Long.java:589)
      at java.lang.Long.parseLong(Long.java:631)
      at com.atlassian.bamboo.plugins.vcs.task.configuration.AbstractVcsTaskConfigurator.populateContextForEdit(AbstractVcsTaskConfigurator.java:72)
      at com.atlassian.bamboo.ww2.actions.build.admin.config.task.TaskUIConfigBean.prepareEditHtml(TaskUIConfigBean.java:110)
      at com.atlassian.bamboo.ww2.actions.build.admin.config.task.EditTask.input(EditTask.java:63)
      at sun.reflect.GeneratedMethodAccessor2160.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      

      Workaround

      The workaround involves deleting the broken Repository Tag task and creating a new one pointing to a non-default Repository:

      1. If you don't know the Repository Tag setup, export the Plan as Java or YAML Specs to capture the settings
      2. Delete the Repository Tag task and recreate it by pointing it to a non-default Repository. You can still select the same repository as the Default, but do not choose Default

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              feeaafc2eddb Mohamed Ayman
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: