Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-15904

Broken link to elastic images in requirements tab in job view

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.9
    • Fix Version/s: 5.9
    • Component/s: Agents
    • Labels:
      None
    • Last commented by user?:
      true
    • Comments:
      0

      Description

      When seeing a job's requirements in Bamboo Cloud, there's a link to elastic instance. This link is broken, as it's taking to a page like:

      https://instance.atlassian.net/builds/agent/viewAgents.action?planKey=undefined
      

      The 'planKey=undefined' seems to be a problem.

      Clicking the link takes to a page with an error and a stack trace.

      The image shows the link and the target URL:

      This takes to this page:

      Steps to Reproduce

      1. Create a Cloud instance with Bamboo
      2. Create a plan with a job
      3. Configure the plan, by going to it and clicking 'Actions >> Configure Plan'
      4. Select the job on the left menu (expand the stage if necessary)
      5. Click the 'Requirements' tab
      6. Click the 'N elastic images' link, where 'N' is the number of images

      Expected outcome

      • The pages with elastic images is open

      Actual behavior

      • The error pages with a stacktrace appears

      The stacktrace is:

      com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined'
      	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
      	at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      	at com.atlassian.bamboo.configuration.agent.ViewAgents.validateInputKey(ViewAgents.java:226)
      	at com.atlassian.bamboo.configuration.agent.ViewAgents.doDefault(ViewAgents.java:242)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
      	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      	at com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      	at com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor.doIntercept(JSONValidationInterceptor.java:69)
      	at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      ...
      	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
      	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalArgumentException: Could not parse key 'undefined'
      	at com.atlassian.bamboo.plan.PlanKeys.getPlanKey(PlanKeys.java:350)
      	at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:68)
      	at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:61)
      	at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
      	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
      	... 233 more
      

      Workaround

      • Replace 'undefined' by the plan key in the link and access it

        Attachments

        1. error_page.png
          error_page.png
          129 kB
        2. job_requirements.png
          job_requirements.png
          127 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jsilveira Jaime Silveira
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  3 years, 11 weeks, 5 days ago