Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-26281

DVCS Github integration webhook triggered by pull_request_review_comment event results in 422 code response

      Issue Summary

      The pull_request_review_comment event was configured by DVCS after linking the GitHub account successfully.

      When reviewer add a comment in the pull request from Github, it will trigger a webhook to Jira.

      DVCS Github integration webhook triggered by pull_request_review_comment event results in 422 code responses.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Integrate Jira with Github (this guide can be used to establish the integration
      2. Go to âš™ > System > Logging & Profilling
        1. Click on "Configure logging level for another package."
        2. Add the following packages separately, select "DEBUG" for the "Logging Level"
          com.atlassian.jira.plugins.dvcs
          
      1. Modify any file in the repository.
      2. Create a new commit for the changes in a new branch.
      3. Then create a new pull request.
      4. Open the pull request and click the "Commits" tab to view the commit changes. 
      5. Click "+" inside the code changes and click "Start Review". 
      6. Click "Finished your review" and add some comments in the box. Then, "Submit Review". This step submission will trigger the pull_request_review_comment event
      7. Go to Settings > Hooks/Webhooks > Edit the pull request webhooks. Then, look for the "Recent Deliveries" section to find the request and response sent by the webhooks that returned 422 error code.
      8. Cross-check the application log, you will get the following loggings:
        2025-01-23 10:43:44,006+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Received GitHub pull_request_review_comment event
        2025-01-23 10:43:44,008+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.dvcs.service.RepositoryServiceImpl] Finding repository with URL [https://github-90551.prod.atl-cd.net/Atlassian/test] for organization [1]
        2025-01-23 10:43:44,014+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Event type pull_request_review_comment not supported, dropping

      Expected Results

      1. Github will create two webhooks: one for push events and the second one for pull request events
      2. Sent webhook requests will result in OK response

      Actual Results

      1. Github will create two webhooks: one with push event, and other one with pull requests and pull_request_review_comment events
      2. The pull request webhook will result with 422 response with this line in the logs Event type pull_request_review_comment not supported, dropping:
        2025-01-23 10:43:44,014+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - x.x.x.x,y.y.y.y /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Event type pull_request_review_comment not supported, dropping
        

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [JSWSERVER-26281] DVCS Github integration webhook triggered by pull_request_review_comment event results in 422 code response

            Puneet Saini made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1008236 ]
            Puneet Saini made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1003846 ]
            Jira Server Release Automation Bot[ADM-107524] made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Puneet Saini made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 986582 ]
            Suddha made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 986176 ]
            Puneet Saini made changes -
            Fix Version/s New: 10.5.0 [ 110314 ]
            Puneet Saini made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Puneet Saini made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Puneet Saini made changes -
            Status Original: Long Term Backlog [ 12073 ] New: Short Term Backlog [ 12074 ]
            Suddha made changes -
            Description Original: h3. Issue Summary

            The *pull_request_review_comment* event was configured by DVCS after linking the GitHub account successfully.

            [!https://api.media.atlassian.com/file/264b9fb3-74a4-4390-9e75-e02eddb7ad8c/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG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d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/264b9fb3-74a4-4390-9e75-e02eddb7ad8c]

            When reviewer add a comment in the pull request from Github, it will trigger a webhook to Jira.

            DVCS Github integration webhook triggered by *pull_request_review_comment* event results in 422 code responses.

            [!https://api.media.atlassian.com/file/ef645950-76a2-488a-8a9e-349ce83fc27c/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/ef645950-76a2-488a-8a9e-349ce83fc27c]

            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce
             # Integrate Jira with Github ([this guide|https://confluence.atlassian.com/jirakb/add-github-organization-repositories-to-jira-software-815256707.html] can be used to establish the integration
             # Go to âš™ > System > Logging & Profilling
             ## Click on "Configure logging level for another package."
             ## Add the following packages separately, select "{*}DEBUG{*}" for the "Logging Level"
            {code:java}
            com.atlassian.jira.plugins.dvcs
            {code}

             # Modify any file in the repository.
             # Create a new commit for the changes in a new branch.
             # Then create a new pull request.
             # Open the pull request and click the "{*}Commits{*}" tab to view the commit changes. [!https://api.media.atlassian.com/file/b0d77714-2353-4e1a-9b20-256b8ed4a2b6/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/b0d77714-2353-4e1a-9b20-256b8ed4a2b6]
             # Click "+" inside the code changes and click "{*}Start Review{*}". [!https://api.media.atlassian.com/file/126b7bcf-5722-47f3-979c-cf1aa704a13b/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/126b7bcf-5722-47f3-979c-cf1aa704a13b]
             # Click "{*}Finished your review{*}" and add some comments in the box. Then, "{*}Submit Review{*}". This step submission will trigger the *pull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YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/727e4e46-b48a-4d1b-9990-0f9a3625d7d0]{*}
             # Go to *Settings > Hooks/Webhooks > Edit* the pull request webhooks. Then, look for the "{*}Recent Deliveries{*}" section to find the request and response sent by the webhooks that returned 422 error code.
             # Cross-check the application log, you will get the following loggings:
            {code:java}
            2025-01-23 10:43:44,006+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Received GitHub pull_request_review_comment event
            2025-01-23 10:43:44,008+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.dvcs.service.RepositoryServiceImpl] Finding repository with URL [https://github-90551.prod.atl-cd.net/Atlassian/test] for organization [1]
            2025-01-23 10:43:44,014+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Event type pull_request_review_comment not supported, dropping{code}

            h3. Expected Results
             # Github will create two webhooks: one for push events and the second one for pull request events
             # Sent webhook requests will result in OK response

            h3. Actual Results
             # Github will create two webhooks: one with push event, and other one with pull requests and *pull_request_review_comment* events
             # The pull request webhook will result with 422 response, which is unexpected:

            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary

            The *pull_request_review_comment* event was configured by DVCS after linking the GitHub account successfully.

            [!https://api.media.atlassian.com/file/264b9fb3-74a4-4390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Kf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/264b9fb3-74a4-4390-9e75-e02eddb7ad8c]

            When reviewer add a comment in the pull request from Github, it will trigger a webhook to Jira.

            DVCS Github integration webhook triggered by *pull_request_review_comment* event results in 422 code responses.

            [!https://api.media.atlassian.com/file/ef645950-76a2-488a-8a9e-349ce83fc27c/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/ef645950-76a2-488a-8a9e-349ce83fc27c]

            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce
             # Integrate Jira with Github ([this guide|https://confluence.atlassian.com/jirakb/add-github-organization-repositories-to-jira-software-815256707.html] can be used to establish the integration
             # Go to âš™ > System > Logging & Profilling
             ## Click on "Configure logging level for another package."
             ## Add the following packages separately, select "{*}DEBUG{*}" for the "Logging Level"
            {code:java}
            com.atlassian.jira.plugins.dvcs
            {code}

             # Modify any file in the repository.
             # Create a new commit for the changes in a new branch.
             # Then create a new pull request.
             # Open the pull request and click the "{*}Commits{*}" tab to view the commit changes. [!https://api.media.atlassian.com/file/b0d77714-2353-4e1a-9b20-256b8ed4a2b6/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/b0d77714-2353-4e1a-9b20-256b8ed4a2b6]
             # Click "+" inside the code changes and click "{*}Start Review{*}". [!https://api.media.atlassian.com/file/126b7bcf-5722-47f3-979c-cf1aa704a13b/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/126b7bcf-5722-47f3-979c-cf1aa704a13b]
             # Click "{*}Finished your review{*}" and add some comments in the box. Then, "{*}Submit Review{*}". This step submission will trigger the *pull_request_review_comment* event{*}. [!https://api.media.atlassian.com/file/727e4e46-b48a-4d1b-9990-0f9a3625d7d0/binary?token=eyJraWQiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzL2FtZ28xdXNybjR0MzBydHAiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJtZWRpYSIsImNsaWVudElkIjoiZGVlMjFhOWYtMWYwNS00ZjRmLThkOTktZTgzZWU3MmQwNWMxIiwiYWNjZXNzIjp7InVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZDoqIjpbInJlYWQiLCJjcmVhdGUiLCJ1cGRhdGUiLCJkZWxldGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZSI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjaHVuazoqIjpbInJlYWQiLCJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjgyMTY3MDAiOlsicmVhZCIsInVwZGF0ZSIsImluc2VydCJdfSwibmJmIjoxNzM3NzE2MzUxLCJpc3MiOiJtaWNyb3MtZ3JvdXAvY3N0LWF0dGFjaG1lbnRzIiwiZXhwIjoxNzM3NzI3MTUxLCJpYXQiOjE3Mzc3MTYzNTEsImp0aSI6IjE2ODBkN2I1LWIxZDMtNGQxNC1hMzdjLWQ3MWNmZDQ1Y2ExOSJ9.AbkZ6yImSQ-Hk8clyqcKVSITBFyxydsLivYo5SefXthIJYZhhGCkZPgKEqpgQ1KLy-4Ntj2oAjtsPTcg4WQQXP7ii-7GuQn28Uz-p-rhqRD93MRVJaT2MyEQRvO-lpGB47mQ67hlmdnAZfLipA8tnRdk520_jmAzvQ30CvewEiUkd2AnC-AL6Vp1vtYRBc0ikal8LATo-QDsjezjClaJPBX4wUZPmGu8-xtnKOlRCjBRb7gyNpu4v5QMX4dD90pH9Wg30YDtsJeY2lXbg02KvwYIVUOpJmVYrNYDpw6SbPwOsw4nhKf_zVIC83SI7CsfaWTwXblfO7M972r1Ri0x7Q&client=dee21a9f-1f05-4f4f-8d99-e83ee72d05c1&collection=8216700&max-age=43200&dl=true!|https://transfer.atlassian.com/preview/8216700/attachment/727e4e46-b48a-4d1b-9990-0f9a3625d7d0]{*}
             # Go to *Settings > Hooks/Webhooks > Edit* the pull request webhooks. Then, look for the "{*}Recent Deliveries{*}" section to find the request and response sent by the webhooks that returned 422 error code.
             # Cross-check the application log, you will get the following loggings:
            {code:java}
            2025-01-23 10:43:44,006+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Received GitHub pull_request_review_comment event
            2025-01-23 10:43:44,008+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.dvcs.service.RepositoryServiceImpl] Finding repository with URL [https://github-90551.prod.atl-cd.net/Atlassian/test] for organization [1]
            2025-01-23 10:43:44,014+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - 10.227.29.169,172.50.0.2 /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Event type pull_request_review_comment not supported, dropping{code}

            h3. Expected Results
             # Github will create two webhooks: one for push events and the second one for pull request events
             # Sent webhook requests will result in OK response

            h3. Actual Results
             # Github will create two webhooks: one with push event, and other one with pull requests and *pull_request_review_comment* events
             # The pull request webhook will result with *422* response with this line in the logs {{Event type pull_request_review_comment not supported, dropping}}:
            {noformat}
            2025-01-23 10:43:44,014+0000 http-nio-8080-exec-9 url: /jira/rest/bitbucket/1.0/webhook/github DEBUG anonymous 643x663x1 - x.x.x.x,y.y.y.y /rest/bitbucket/1.0/webhook/github [c.a.j.p.d.r.external.v1.HookResource] Event type pull_request_review_comment not supported, dropping
            {noformat}

            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              ckimloong John Chin
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: