Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-45898

JIRA 7 unable to trigger a build in Bamboo when releasing version

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary

      When releasing JIRA Project version, it fail to send a request to Bamboo to run a build due to User Display Name have cyrillic character

      Environment

      JIRA 7.0.0

      Steps to Reproduce

      1. Create a JIRA user with Full Name "Александр" and username "alexander"
      2. Login with this new user
      3. Navigate to JIRA Project Administration >> Versions
      4. Build and release a JIRA version

      Expected Results

      It will trigger a build in Bamboo

      Actual Results

      The below exception is thrown in the UI:

      A system error has occurred. If this problem persists, contact your JIRA administrators.
      

      atlassian-jira.log:

      2015-10-21 20:04:18,087 http-nio-8700-exec-2 ERROR alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [c.a.j.p.e.bamboo.release.ConfigureBambooRelease] Bamboo failed to trigger the release build for version 1.0
      java.lang.NullPointerException
      	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.isResponseValid(BambooRestServiceImpl.java:490)
      	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.parseResponseForJsonObject(BambooRestServiceImpl.java:432)
      	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.parseResponseForJsonObject(BambooRestServiceImpl.java:415)
      	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.executeTrigger(BambooRestServiceImpl.java:386)
      

      Notes

      Enabling debug logging for "org.apache.http.wire" will show the following POST request:

      2015-10-21 20:04:18,076 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "POST /rest/api/latest/queue/BAM-GIT.json HTTP/1.1[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "X-Atlassian-Token: no-check[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Authorization: OAuth oauth_token="rx8VrSRkaGFkYu1BhuI75mZ0tb01NaIP", oauth_consumer_key="jira%3A6b5fd7e9-3fe7-43b4-871a-47fe5517e2b2", oauth_signature_method="RSA-SHA1", oauth_timestamp="1445429058", oauth_nonce="24455369159320", oauth_version="1.0", oauth_signature="SmLvoeazJAQZiLaAtBc6qbs70K993xTBDjWwWvPux9kBKXwmj645giex6e%2BR%2BLYKlMRIyVp4fIIWaOpU4XnDQwz8hFZW3PY9KTgUPxF%2FHO3FvuZzE8GNIypGyV%2FF2W2lRqpUvOK%2Fqa2SPcDQ1%2FpQH%2FYgm2GsRiVxjMH%2BogBFWgA%3D"[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Content-Length: 528[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Host: localhost:8085[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.4.1 (Java/1.8.0_51)[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
      2015-10-21 20:04:18,077 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "[\r][\n]"
      2015-10-21 20:04:18,078 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 >> "bamboo.triggerReason.jiraBaseUrl=http%3A%2F%2Flocalhost%3A8700&bamboo.triggerReason.jiraProjectName=test&bamboo.triggerReason.jiraVersion=1.0&bamboo.triggerReason.jiraVersionId=10000&bamboo.triggerReason.jiraUserDisplayName=%3F%3F%3F%3F%3F%3F%3F%3F%3F&bamboo.customTriggerReasonKey=com.atlassian.bamboo.plugin.jira%3AjiraReleaseTriggerReason&bamboo.triggerReason.jiraUsername=alexander&bamboo.customPlanTriggerKey=com.atlassian.bamboo.plugin.jira%3AjiraReleasePlanTrigger&bamboo.triggerReason.jiraProjectKey=TST"
      2015-10-21 20:04:18,085 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "HTTP/1.1 401 Unauthorized[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "Server: Apache-Coyote/1.1[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "WWW-Authenticate: OAuth realm="http%3A%2F%2Flocalhost%3A8085"[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "WWW-Authenticate: OAuth realm="http%3A%2F%2Flocalhost%3A8085", oauth_signature="SmLvoeazJAQZiLaAtBc6qbs70K993xTBDjWwWvPux9kBKXwmj645giex6e%2BR%2BLYKlMRIyVp4fIIWaOpU4XnDQwz8hFZW3PY9KTgUPxF%2FHO3FvuZzE8GNIypGyV%2FF2W2lRqpUvOK%2Fqa2SPcDQ1%2FpQH%2FYgm2GsRiVxjMH%2BogBFWgA%3D", oauth_signature_base_string="POST%26http%253A%252F%252Flocalhost%253A8085%252Frest%252Fapi%252Flatest%252Fqueue%252FBAM-GIT.json%26bamboo.customPlanTriggerKey%253Dcom.atlassian.bamboo.plugin.jira%25253AjiraReleasePlanTrigger%2526bamboo.customTriggerReasonKey%253Dcom.atlassian.bamboo.plugin.jira%25253AjiraReleaseTriggerReason%2526bamboo.triggerReason.jiraBaseUrl%253Dhttp%25253A%25252F%25252Flocalhost%25253A8700%2526bamboo.triggerReason.jiraProjectKey%253DTST%2526bamboo.triggerReason.jiraProjectName%253Dtest%2526bamboo.triggerReason.jiraUserDisplayName%253D%25253F%25253F%25253F%25253F%25253F%25253F%25253F%25253F%25253F%252520%25253F%25253F%25253F%25253F%25253F%25253F%25253F%2526bamboo.triggerReason.jiraUsername%253Dalexander%2526bamboo.triggerReason.jiraVersion%253D1.0%2526bamboo.triggerReason.jiraVersionId%253D10000%2526oauth_consumer_key%253Djira%25253A6b5fd7e9-3fe7-43b4-871a-47fe5517e2b2%2526oauth_nonce%253D24455369159320%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1445429058%2526oauth_token%253Drx8VrSRkaGFkYu1BhuI75mZ0tb01NaIP%2526oauth_version%253D1.0", oauth_problem="signature_invalid", oauth_signature_method="RSA-SHA1"[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "Content-Type: application/x-www-form-urlencoded;charset=UTF-8[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "Content-Length: 1355[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "Date: Wed, 21 Oct 2015 12:04:18 GMT[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "[\r][\n]"
      2015-10-21 20:04:18,086 http-nio-8700-exec-2 DEBUG alexander 1204x565x1 4lajru 0:0:0:0:0:0:0:1 /secure/SubmitBambooRelease.jspa [o.apache.http.wire] http-outgoing-37 << "oauth_signature=SmLvoeazJAQZiLaAtBc6qbs70K993xTBDjWwWvPux9kBKXwmj645giex6e%2BR%2BLYKlMRIyVp4fIIWaOpU4XnDQwz8hFZW3PY9KTgUPxF%2FHO3FvuZzE8GNIypGyV%2FF2W2lRqpUvOK%2Fqa2SPcDQ1%2FpQH%2FYgm2GsRiVxjMH%2BogBFWgA%3D&oauth_signature_base_string=POST%26http%253A%252F%252Flocalhost%253A8085%252Frest%252Fapi%252Flatest%252Fqueue%252FBAM-GIT.json%26bamboo.customPlanTriggerKey%253Dcom.atlassian.bamboo.plugin.jira%25253AjiraReleasePlanTrigger%2526bamboo.customTriggerReasonKey%253Dcom.atlassian.bamboo.plugin.jira%25253AjiraReleaseTriggerReason%2526bamboo.triggerReason.jiraBaseUrl%253Dhttp%25253A%25252F%25252Flocalhost%25253A8700%2526bamboo.triggerReason.jiraProjectKey%253DTST%2526bamboo.triggerReason.jiraProjectName%253Dtest%2526bamboo.triggerReason.jiraUserDisplayName%253D%25253F%25253F%25253F%25253F%25253F%25253F%25253F%25253F%25253F%252520%25253F%25253F%25253F%25253F%25253F%25253F%25253F%2526bamboo.triggerReason.jiraUsername%253Dalexander%2526bamboo.triggerReason.jiraVersion%253D1.0%2526bamboo.triggerReason.jiraVersionId%253D10000%2526oauth_consumer_key%253Djira%25253A6b5fd7e9-3fe7-43b4-871a-47fe5517e2b2%2526oauth_nonce%253D24455369159320%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1445429058%2526oauth_token%253Drx8VrSRkaGFkYu1BhuI75mZ0tb01NaIP%2526oauth_version%253D1.0&oauth_problem=signature_invalid&oauth_signature_method=RSA-SHA1"
      

      From the POST request, JIRA user Full Name is not encoded properly:

      bamboo.triggerReason.jiraUserDisplayName=%3F%3F%3F%3F%3F%3F%3F%3F%3F
      

      Have tested the same Full Name with JIRA 6.4.7 working fine (encoded properly)

      Attachments

        Issue Links

          Activity

            People

              ialexeyenko Ignat (Inactive)
              klfoong Foong (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: