Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-11884

The JSM Mail Handler functionality creates tickets from incoming emails in wrong projects

      Issue Summary

      When multiple Jira Service Management (JSM) projects are configured with a Mail Handler via Project Settings > Email Requests, the following issue happens:

      • the JSM Mail Handler incorrectly maps new incoming emails to the wrong JSM project, instead of the project linked to the mailbox the emails were sent to
      • JSM tickets get created in the wrong JSM project

      Steps to Reproduce

      1. Install Jira Service Management (JSM 4.22.5)
      2. Create 2 JSM projects (Project A and Project B)
      3. In each project, configure a JSM Mail Handler via the page Project Settings > Email Requests
        • Project A is configured to pull emails from mailbox A
        • Project B is configured to pull emails from mailbox B
      4. Send 2 emails to Mailbox A, and 2 emails to Mailbox B
      5. Wait for 5min to give time to the mail handlers to process the incoming emails from their respective mailboxes

      Expected Results

      The new incoming emails should lead to the creation of JSM tickets in the projects that are mapped to the mailbox they were sent to. In other words:

      • The emails sent to Mailbox A will be processed by Project A, and will create JSM tickets in Project A
      • The emails sent to Mailbox B will be processed by Project B, and will create JSM tickets in Project B

      Actual Results

      JSM tickets are created in random/wrong JSM projects.

      Using the configuration from the steps to replicate section, if we go to the page ⚙ > Applications > Email Requests, we can see that:

      • If we go to the Processing logs of the Mail Handler from Project A, all the 4 incoming emails were processed by that project:
      • If we go to the Processing logs of the Mail Handler from Project B, no incoming email was process by that project

      Notes about the impacted version

      The bug is replicable on JSM 4.22.5, but not replicable on JSM 5.0.0 and other LTS versions 4.13.x, 4.20.x.

      Workaround

      Downgrade "jira-email-processor-plugin" to the previous version:

      1. Stop all the Jira nodes in the Data Center Cluster
      2. In each Jira node:
        1. Take a backup of the file JIRA_HOME/plugins/installed-plugins/jira-email-processor-plugin-4.22.5-REL-0003.jar and remove it from this folder
        2. Copy the attached file jira-email-processor-plugin-4.22.4-REL-0001.jar to JIRA_HOME/plugins/installed-plugins instead
      3. Start each Jira node 1 by 1
      4. Go to the page ⚙ > Manage Apps > Manage Apps, search for "jira-email-processor-plugin", and make sure that the version 4.22.4 of this add-on is in use

        1. jira-email-processor-plugin-4.22.4-REL-0001.jar
          2.08 MB
          Julien Rey
        2. MailProcessor4.22.4.png
          230 kB
          Julien Rey
        3. ProjectA_MailHandler.png
          417 kB
          Julien Rey
        4. ProjectA_MailProcessorLogs.png
          472 kB
          Julien Rey
        5. ProjectB_MailHandler.png
          405 kB
          Julien Rey

            [JSDSERVER-11884] The JSM Mail Handler functionality creates tickets from incoming emails in wrong projects

            Daniel R made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 783952 ]
            Meriem Dhahak made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 673503 ]
            Meriem Dhahak made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 668197 ]
            Sylwia Mikołajczuk (Inactive) made changes -
            Fix Version/s Original: 4.13.23 [ 101692 ]
            Fix Version/s New: 4.13.24 [ 102092 ]
            Bartosz Ornatowski made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 663918 ]
            Brian Adeloye (Inactive) made changes -
            Link New: This issue is detailed by JSDSERVER-11888 [ JSDSERVER-11888 ]
            Security Metrics Bot made changes -
            Labels Original: security security-imported sefcon_cat1_functional New: resolved-in-vf security security-imported sefcon_cat1_functional
            Kamil Smigielski (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Andriy Yakovlev [Atlassian] made changes -
            Description Original: h3. Issue Summary

            When multiple Jira Service Management (JSM) projects are configured with [a Mail Handler|https://confluence.atlassian.com/servicemanagementserver/receiving-requests-by-email-939926303.html] via {*}Project Settings > Email Requests{*}, the following issue happens:
             - the JSM Mail Handler incorrectly maps new incoming emails to the wrong JSM project, instead of the project linked to the mailbox the emails were sent to
             - JSM tickets get created in the wrong JSM project


            h3. Steps to Reproduce
             # Install Jira Service Management (JSM 4.22.5)
             # Create 2 JSM projects (Project A and Project B)
             # In each project, configure a JSM Mail Handler via the page *Project Settings > Email Requests*
             -- Project A is configured to pull emails from mailbox A
            !ProjectA_MailHandler.png|thumbnail!
             -- Project B is configured to pull emails from mailbox B
            !ProjectB_MailHandler.png|thumbnail!
             # Send 2 emails to Mailbox A, and 2 emails to Mailbox B
             # Wait for 5min to give time to the mail handlers to process the incoming emails from their respective mailboxes

            h3. Expected Results

            The new incoming emails should lead to the creation of JSM tickets in the projects that are mapped to the mailbox they were sent to. In other words:
             - The emails sent to Mailbox A will be processed by Project A, and will create JSM tickets in Project A
             - The emails sent to Mailbox B will be processed by Project B, and will create JSM tickets in Project B

            h3. Actual Results

            JSM tickets are created in random/wrong JSM projects.

            Using the configuration from the *steps to replicate* section, if we go to the page {*}⚙ > Applications > Email Requests{*}, we can see that:
             - If we go to the Processing logs of the Mail Handler from Project A, all the 4 incoming emails were processed by that project:
            !ProjectA_MailProcessorLogs.png|thumbnail!
             - If we go to the Processing logs of the Mail Handler from Project B, no incoming email was process by that project

            h3. Notes about the impacted version

            The bug is replicable on JSM 4.22.5, but *not replicable on JSM 5.0.0*

            h3. Workaround

            Downgrade "{_}jira-email-processor-plugin{_}" to the previous version:
             # Stop all the Jira nodes in the Data Center Cluster
             # In each Jira node:
             ## Take a backup of the file *JIRA_HOME/plugins/installed-plugins/jira-email-processor-plugin-4.22.5-REL-0003.jar* and remove it from this folder
             ## Copy the attached file [^jira-email-processor-plugin-4.22.4-REL-0001.jar] to JIRA_HOME/plugins/installed-plugins instead
             # Start each Jira node 1 by 1
             # Go to the page {*}⚙ > Manage Apps > Manage Apps{*}, search for "jira-email-processor-plugin", and make sure that the version 4.22.4 of this add-on is in use
            !MailProcessor4.22.4.png|thumbnail!
            New: h3. Issue Summary

            When multiple Jira Service Management (JSM) projects are configured with [a Mail Handler|https://confluence.atlassian.com/servicemanagementserver/receiving-requests-by-email-939926303.html] via {*}Project Settings > Email Requests{*}, the following issue happens:
             - the JSM Mail Handler incorrectly maps new incoming emails to the wrong JSM project, instead of the project linked to the mailbox the emails were sent to
             - JSM tickets get created in the wrong JSM project


            h3. Steps to Reproduce
             # Install Jira Service Management (JSM 4.22.5)
             # Create 2 JSM projects (Project A and Project B)
             # In each project, configure a JSM Mail Handler via the page *Project Settings > Email Requests*
             -- Project A is configured to pull emails from mailbox A
            !ProjectA_MailHandler.png|thumbnail!
             -- Project B is configured to pull emails from mailbox B
            !ProjectB_MailHandler.png|thumbnail!
             # Send 2 emails to Mailbox A, and 2 emails to Mailbox B
             # Wait for 5min to give time to the mail handlers to process the incoming emails from their respective mailboxes

            h3. Expected Results

            The new incoming emails should lead to the creation of JSM tickets in the projects that are mapped to the mailbox they were sent to. In other words:
             - The emails sent to Mailbox A will be processed by Project A, and will create JSM tickets in Project A
             - The emails sent to Mailbox B will be processed by Project B, and will create JSM tickets in Project B

            h3. Actual Results

            JSM tickets are created in random/wrong JSM projects.

            Using the configuration from the *steps to replicate* section, if we go to the page {*}⚙ > Applications > Email Requests{*}, we can see that:
             - If we go to the Processing logs of the Mail Handler from Project A, all the 4 incoming emails were processed by that project:
            !ProjectA_MailProcessorLogs.png|thumbnail!
             - If we go to the Processing logs of the Mail Handler from Project B, no incoming email was process by that project

            h3. Notes about the impacted version

            The bug is replicable on JSM 4.22.5, but *not replicable on JSM 5.0.0* and other LTS versions 4.13.x, 4.20.x.

            h3. Workaround

            Downgrade "{_}jira-email-processor-plugin{_}" to the previous version:
             # Stop all the Jira nodes in the Data Center Cluster
             # In each Jira node:
             ## Take a backup of the file *JIRA_HOME/plugins/installed-plugins/jira-email-processor-plugin-4.22.5-REL-0003.jar* and remove it from this folder
             ## Copy the attached file [^jira-email-processor-plugin-4.22.4-REL-0001.jar] to JIRA_HOME/plugins/installed-plugins instead
             # Start each Jira node 1 by 1
             # Go to the page {*}⚙ > Manage Apps > Manage Apps{*}, search for "jira-email-processor-plugin", and make sure that the version 4.22.4 of this add-on is in use
            !MailProcessor4.22.4.png|thumbnail!
            Bartosz Ornatowski made changes -
            Fix Version/s New: 4.22.6 [ 101991 ]
            Fix Version/s New: 4.20.11 [ 101696 ]
            Fix Version/s New: 4.13.23 [ 101692 ]
            Fix Version/s New: 5.1.0 [ 101095 ]

              bornatowski Bartosz Ornatowski
              jrey Julien Rey
              Affected customers:
              2 This affects my team
              Watchers:
              21 Start watching this issue

                Created:
                Updated:
                Resolved: