Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11825

Bitbucket can send 'null' as the email address when notifying Jira about new commits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.5.2
    • 6.3.2
    • None
    • None

    Description

      Issue Summary

      When Bitbucket communicates with Jira about one or several commits that are linked to an issue, Bitbucket can sometimes send the field initiator:email as 'null'. This behaviour can cause an unexpected error in Jira as it always expects a value for that field.

      Steps to Reproduce

      This issue has only been reproduced on repositories that use the SVN Mirror for Bitbucket Server app. For some reason, the commits can be created with missing fields and then Bitbucket sends those commits to Jira with missing data.

      Synthetic reproduction: This issue can be reproduced by manually setting "email" field into null in cwd_user table. The actual reason why "SVN Mirror for Bitbucket Server" causes Bitbucket to  report commits in the way it does is still unknown.

      Expected Results

      When there is a situation where a commit does not contain an email address linked to it, Bitbucket should send an empty collection instead.

      Actual Results

      Bitbucket is sending the initiator email field as collection with single 'null' element.

      Workaround

      No workaround

      Attachments

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              malonso@atlassian.com Miguel Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: