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

Internal Server Error when modifying a Repository Tag task linked to a Default Linked repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 9.0.1
    • Tasks
    • None

    Description

      Problem

      Is this reproducible on Data Center

      When a Repository Tag task is linked to a Default Linked Repository making changes to it will result in the following internal server error message:

      Version: 9.0.1
      Build: 90006
      Build Date: 04 Oct 2022

      Request information:

      • Request URL: https://bamboo901.mydomain.net/build/admin/edit/editTask.action
      • Scheme: https
      • Server: bamboo901.osalva.net
      • Port: 443
      • URI: /build/admin/edit/editTask.action
      • Context path:
      • Servlet path: /build/admin/edit/editTask.action
      • Path info:
      • Query string: planKey=ABC-CON-JOB1&taskId=4&decorator=nothing&confirm=true&_=1669954308159

      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)
      

      Environment

      • Bamboo 9.0.1

      Steps to Reproduce

      1. Add a Repository as the first (default) repository to a Plan
      2. Create a Repository Tag task pointing to the Default Repository and Save
      3. Open the Repository Tag task settings

      Expected Results

      • Bamboo should edit/view the Repository tag normally

      Actual Results

      • Internal Server Error reported on the Problem session above shows up
      • All plans that use a "Default Repository" on the Repository Tag task configuration will also produce the same Internal Server Error page

      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

      Notes

      • The checkboxes near "Disable this task" and "Add condition to task" don't exist, though they are still functional when "clicking" on the right spot:

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              73868399605e Eduardo Alvarenga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: