Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15842

Mix case in the user emails causes notifications for committers to fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.10.0
    • 5.7.2, 5.8.1
    • Notifications

    Description

      Steps to replicate

      1. In your git config, set the email as thus.. Notice the first character is in caps
        [user]
        	name = tester
        	email = Smaiyaki@atlassian.com
        
      2. Now create same user in bamboo with the email in camel case. That is an email "SMaiyaki@atlassian.com"
      3. Now add a notification to a plan so that it sends notification to recipients "committers"
      4. Add the following classes to debug logging from the log settings page. This is optional but juts for tracking purposes:
        com.atlassian.bamboo.author
        com.atlassian.bamboo.notification
        com.atlassian.bamboo.commit
        com.sun.mail
        com.atlassian.bamboo.mail
        
      5. Make commits as user "tester" and push

      Expected behavior
      The build after running should sent emails to the committer of the code which is user "tester"

      Current behavior
      Bamboo fails to recognise this user as the committer and as thus, no emails are send..The following appears in the logs:

      2015-04-10 23:35:51,527 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-1] [DependencyChainListener] Finished checking children plans of 'TESTA - bitbucket' for plan TESTA-BIT-56
      2015-04-10 23:35:51,535 DEBUG [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-7] [ChainCompletedNotificationListener] Completed Chain Notification Listener checking for notifications to send for
       TESTA-BIT-56
      2015-04-10 23:35:51,551 DEBUG [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-7] [AllChainNotificationType] All Plan Notification rule: sending a notification 
      2015-04-10 23:35:51,551 DEBUG [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-7] [ChainCompletedNotificationListener] Completed chain notification (class class com.atlassian.bamboo.notification.
      chain.AllChainNotificationType ) rule found for recipient: , type: com.atlassian.bamboo.plugin.system.notifications:recipient.committer
      2015-04-10 23:35:51,556 DEBUG [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-7] [CommitterRecipient] Author tester <Smaiyaki@atlassian.com> does not have a linked user. Skipping
      2015-04-10 23:35:52,103 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-5] [BuildQueueManagerImpl] Attempting to queue Deployment of 'release-9' on 'QA'.
      2015-04-10 23:35:52,103 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-5] [ExecutionPhaseServiceImpl] Deployment of 'release-9' on 'QA' queued
      2015-04-10 23:35:52,185 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-1] [BuildAgentControllerImpl] A new executable may be available on the server.
      2015-04-10 23:35:52,185 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-5] [BuildQueueManagerImpl] Sent ExecutableQueueUpdate: addToQueue
      2015-04-10 23:35:52,185 INFO [11-BAM::Default Agent::Agent:pool-26-thread-1] [BuildAgentControllerImpl] Agent 131073 checking build queue for executables...
      2015-04-10 23:35:52,186 INFO [11-BAM::Default Agent::Agent:pool-26-thread-1] [BuildQueueManagerImpl] Sending 7667713-7766017-17858563 to agent 131073
      2015-04-10 23:35:52,186 INFO [11-BAM::Default Agent::Agent:pool-26-thread-1] [BuildAgentControllerImpl] Deployment of 'release-9' on 'QA' taken from queue.
      2015-04-10 23:35:52,186 INFO [11-BAM::Default Agent::Agent:pool-26-thread-1] [ExecutionPhaseServiceImpl] Deployment of 'release-9' on 'QA' assigned to agent 131073
      2015-04-10 23:35:52,185 INFO [13-BAM::third defualt agent::Agent:pool-28-thread-1] [BuildAgentControllerImpl] Agent 131075 checking build queue for executables...
      2015-04-10 23:35:52,185 INFO [12-BAM::second default agent::Agent:pool-27-thread-1] [BuildAgentControllerImpl] Agent 131074 checking build queue for executables...
      2015-04-10 23:35:52,237 INFO [Connection monitoring thread - 0703ad49-10de-4a00-864e-cf0ecb762995] [RetryingTaskExecutor] Task 'Connecting to [git@localhost/127.0.0.1:7991]' threw org.apache.sshd.common.RuntimeSshException: Failed to get the session., aborting.
      2015-04-10 23:35:52,237 WARN [Connection monitoring thread - 0703ad49-10de-4a00-864e-cf0ecb762995] [SshProxyCommand] While connecting to [git@localhost/127.0.0.1:7991]: Error while opening SSH session
      :
      

      Workaround
      Update the user profile to use same email as in the git config or add repository alias to this email in the user profile

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: