java.lang.RuntimeException: BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"]

Atlassian JIRA | Zulfadli Noor Sazali [Atlassian] | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    External gadgets do not work on JIRA 6.1.3 when Trusted Applications is configured between two applications. However, oAuth authentication seems to be working fine. This issue can occur in a variety of gadgets (i.e. [Overdue Review gadget|https://confluence.atlassian.com/display/CRUCIBLE/Using+Crucible+gadgets], [Confluence Page gadget|https://confluence.atlassian.com/display/DOC/Confluence+Page+Gadget]) among different products, follow is the description of how to replicate this issue with JIRA and Confluence. h4. Steps to reproduce # Setup JIRA 6.1.3 and Confluence 5.3.4 # Configure 'Trusted Application' application link between the two applications # Add "Show Confluence Page" gadget on JIRA # You will face error on the gadget as example in [^gadget.jpg] with HTTP Status 401 Unauthorized Error. If DEBUG is enabled on Confluence, the following will be thrown {noformat}2013-12-10 18:11:10,724 DEBUG [http-8090-17] [auth.trustedapps.filter.TrustedApplicationFilterAuthenticator] setFailureHeader BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"] java.lang.RuntimeException: BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.setFailureHeader(TrustedApplicationFilterAuthenticator.java:247) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.authenticate(TrustedApplicationFilterAuthenticator.java:73){noformat}

    Atlassian JIRA | 3 years ago | Zulfadli Noor Sazali [Atlassian]
    java.lang.RuntimeException: BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"]
  2. 0

    External gadgets do not work on JIRA 6.1.3 when Trusted Applications is configured between two applications. However, oAuth authentication seems to be working fine. This issue can occur in a variety of gadgets (i.e. [Overdue Review gadget|https://confluence.atlassian.com/display/CRUCIBLE/Using+Crucible+gadgets], [Confluence Page gadget|https://confluence.atlassian.com/display/DOC/Confluence+Page+Gadget]) among different products, follow is the description of how to replicate this issue with JIRA and Confluence. h4. Steps to reproduce # Setup JIRA 6.1.3 and Confluence 5.3.4 # Configure 'Trusted Application' application link between the two applications # Add "Show Confluence Page" gadget on JIRA # You will face error on the gadget as example in [^gadget.jpg] with HTTP Status 401 Unauthorized Error. If DEBUG is enabled on Confluence, the following will be thrown {noformat}2013-12-10 18:11:10,724 DEBUG [http-8090-17] [auth.trustedapps.filter.TrustedApplicationFilterAuthenticator] setFailureHeader BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"] java.lang.RuntimeException: BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.setFailureHeader(TrustedApplicationFilterAuthenticator.java:247) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.authenticate(TrustedApplicationFilterAuthenticator.java:73){noformat}

    Atlassian JIRA | 3 years ago | Zulfadli Noor Sazali [Atlassian]
    java.lang.RuntimeException: BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"]

    Root Cause Analysis

    1. java.lang.RuntimeException

      BAD_PROTOCOL_VERSION; Unsupported protocol version: {0}. required {1}; ["0","2"]

      at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.setFailureHeader()
    2. com.atlassian.security
      TrustedApplicationFilterAuthenticator.setFailureHeader
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.setFailureHeader(TrustedApplicationFilterAuthenticator.java:247)
      1 frame