Remote agent parsing of malformed fingerprint response fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 6.8.0
    • Affects Version/s: 6.6.0, 6.6.1, 6.6.3
    • Component/s: Agents
    • None
    • 2
    • Severity 3 - Minor

      Summary

      The remote agent parsing of a fingerprint message fails if the message is malformed.

      Expected results

      The parsing handles malformed messages.

      Actual Results

      An ArrayIndexOutOfBoundsException is thrown when the remote agent parses the response:

      java.lang.ArrayIndexOutOfBoundsException: 1
              at com.atlassian.bamboo.agent.bootstrap.GetFingerprintResponse.<init>(GetFingerprintResponse.java:24)
              at com.atlassian.bamboo.agent.bootstrap.AgentContext.initFingerprint(AgentContext.java:119)
              at com.atlassian.bamboo.agent.bootstrap.AgentContext.initServerSession(AgentContext.java:101)
              at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:88)
              at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:111)
              at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:50)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
              at java.lang.Thread.run(Thread.java:748)
      

      Workaround

      There is no workaround.

            Assignee:
            Pawel Skierczynski
            Reporter:
            Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: