{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/191","repository_url":"https://api.github.com/repos/jenkinsci/slack-plugin","labels_url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/191/comments","events_url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/191/events","html_url":"https://github.com/jenkinsci/slack-plugin/issues/191","id":141425420,"node_id":"MDU6SXNzdWUxNDE0MjU0MjA=","number":191,"title":"Upgrading to Slack 2.0 outbound webhooks breaks Jenkins [replicated]","user":{"login":"samrocketman","id":875669,"node_id":"MDQ6VXNlcjg3NTY2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/875669?v=4","gravatar_id":"","url":"https://api.github.com/users/samrocketman","html_url":"https://github.com/samrocketman","followers_url":"https://api.github.com/users/samrocketman/followers","following_url":"https://api.github.com/users/samrocketman/following{/other_user}","gists_url":"https://api.github.com/users/samrocketman/gists{/gist_id}","starred_url":"https://api.github.com/users/samrocketman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samrocketman/subscriptions","organizations_url":"https://api.github.com/users/samrocketman/orgs","repos_url":"https://api.github.com/users/samrocketman/repos","events_url":"https://api.github.com/users/samrocketman/events{/privacy}","received_events_url":"https://api.github.com/users/samrocketman/received_events","type":"User","site_admin":false},"labels":[{"id":217631047,"node_id":"MDU6TGFiZWwyMTc2MzEwNDc=","url":"https://api.github.com/repos/jenkinsci/slack-plugin/labels/HIGH","name":"HIGH","color":"e11d21","default":false},{"id":67089170,"node_id":"MDU6TGFiZWw2NzA4OTE3MA==","url":"https://api.github.com/repos/jenkinsci/slack-plugin/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jenkinsci/slack-plugin/milestones/6","html_url":"https://github.com/jenkinsci/slack-plugin/milestone/6","labels_url":"https://api.github.com/repos/jenkinsci/slack-plugin/milestones/6/labels","id":1645912,"node_id":"MDk6TWlsZXN0b25lMTY0NTkxMg==","number":6,"title":"2.0.1","description":"Bugfix release","creator":{"login":"kmadel","id":983526,"node_id":"MDQ6VXNlcjk4MzUyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/983526?v=4","gravatar_id":"","url":"https://api.github.com/users/kmadel","html_url":"https://github.com/kmadel","followers_url":"https://api.github.com/users/kmadel/followers","following_url":"https://api.github.com/users/kmadel/following{/other_user}","gists_url":"https://api.github.com/users/kmadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadel/subscriptions","organizations_url":"https://api.github.com/users/kmadel/orgs","repos_url":"https://api.github.com/users/kmadel/repos","events_url":"https://api.github.com/users/kmadel/events{/privacy}","received_events_url":"https://api.github.com/users/kmadel/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"closed","created_at":"2016-03-15T15:43:20Z","updated_at":"2016-11-22T20:49:26Z","due_on":"2016-03-21T07:00:00Z","closed_at":"2016-04-09T14:11:48Z"},"comments":20,"created_at":"2016-03-16T22:52:06Z","updated_at":"2018-10-01T17:05:54Z","closed_at":null,"author_association":"MEMBER","body":"This issue is going to be the center point for tracking the patching progress.  This issue supersedes the following issues:\n- #188\n- #189\n- [JENKINS-33556](https://issues.jenkins-ci.org/browse/JENKINS-33556)\n\nThis issue was caused by the following merged change: #160\n# Workaround (for Jenkins admins)\n\nThere's two options for a workaround.\n### Option 1\n\nSee https://github.com/jenkinsci/slack-plugin/issues/191#issuecomment-232307353 which will remove all slack configurations and give an opportunity to reconfigure your Jenkins with the latest update of the Slack plugin.\n### Option 2\n\nThis will entirely disable outbound webhooks in the Slack plugin 2.0.\n1. Go to your `$JENKINS_HOME` and create a `init.groovy.d/` directory.\n2. Download [this script to disable Slack outbound webhooks](https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/disable-slack-webhooks.groovy) and copy it into `$JENKINS_HOME/init.groovy.d`.\n3. Restart your Jenkins instance.\n\nIt should be back to normal and you'll be able to configure things again.  Slack outbound webhooks will always be disabled for the duration you have this script installed in `init.groovy.d/`.\n# Problematic conditions\n\nI was able to successfully reproduce the issue under the following conditions.\n- Another plugin with webhooks configured (the bootstrap includes ghprb plugin i.e. github pull request builder plugin)\n- Authentication enabled (recommend using the pre-installed github oauth plugin from the bootstrap).\n- Only authenticated users get access (i.e. not anonymous).  I simply set the `authenticated` group to be administrators with the `Administer` permission.\n- Upgrading from Slack 1.8.1 to 2.0.0.\n# How to reproduce (for developers to patch)\n1. [Bootstrap Jenkins with slack configured](https://github.com/samrocketman/jenkins-bootstrap-slack).  Simply clone the repository and execute `./slack_bootstrap.sh` on a Unix-like machine.  This will:\n   - Pre-install an older version of Jenkins.\n   - Pre-install and configure the slack plugin 1.8.1.\n   - Configure some test jobs with slack configured.\n   - Pre-install github-oauth and ghprb plugin.\n2. Configure global security:\n   1. Enable global security.\n   2. Generate a [new GitHub OAuth Application](https://github.com/settings/applications/new).  With the following settings:\n      - Application name: `Jenkins`\n      - Homepage URL: `http://localhost:8080/`\n      - Application description: `Jenkins testing.`\n      - Authorization callback URL: `http://localhost:8080/securityRealm/finishLogin`\n   3. Security Realm should be set to Github Authentication Plugin and configure it with the Client ID and Client Secret settings from your GitHub OAuth application.\n   4. Under access control in the global security page configure _Authorization_ and choose `Matrix-based security`.  Set the following settings:\n      - `authenticated` group must have administer permissions.\n      - `anonymous` group must not have any permissions.\n3. Visit http://localhost:8080/manage and update Jenkins to latest edition.\n4. Restart Jenkins after upgrade.\n5. Visit http://localhost:8080/pluginManager/ and update all plugins (including Slack plugin 2.0) to latest editions.\n6. Restart Jenkins after upgrade.\n\nFrom this point, you should get a stack trace like in [JENKINS-33556](https://issues.jenkins-ci.org/browse/JENKINS-33556).  Following the above steps reproduces the issue every time.\n\nAdditional bootstrap commands:\n- Restart the Jenkins instance with `./scripts/provision_jenkins.sh restart`\n- Delete and clean up everying.  `./gradlew clean`\n- Bootstrap everything again.  `./slack_bootstrap.sh`\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/comments/425985460","html_url":"https://github.com/jenkinsci/slack-plugin/issues/191#issuecomment-425985460","issue_url":"https://api.github.com/repos/jenkinsci/slack-plugin/issues/191","id":425985460,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTk4NTQ2MA==","user":{"login":"hugespoon","id":631100,"node_id":"MDQ6VXNlcjYzMTEwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/631100?v=4","gravatar_id":"","url":"https://api.github.com/users/hugespoon","html_url":"https://github.com/hugespoon","followers_url":"https://api.github.com/users/hugespoon/followers","following_url":"https://api.github.com/users/hugespoon/following{/other_user}","gists_url":"https://api.github.com/users/hugespoon/gists{/gist_id}","starred_url":"https://api.github.com/users/hugespoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugespoon/subscriptions","organizations_url":"https://api.github.com/users/hugespoon/orgs","repos_url":"https://api.github.com/users/hugespoon/repos","events_url":"https://api.github.com/users/hugespoon/events{/privacy}","received_events_url":"https://api.github.com/users/hugespoon/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T17:05:54Z","updated_at":"2018-10-01T17:05:54Z","author_association":"NONE","body":"Can confirm that this issue still seems to be occurring (Jenkins 2.32.2 and Slack Plugin 2.3). \r\n\r\nLots of the following in the logs:\r\n\r\n`at jenkins.plugins.slack.webhook.WebhookEndpoint.getUrlName(WebhookEndpoint.java:51)\r\n        at jenkins.model.Jenkins.getDynamic(Jenkins.java:3565)`"}}
{"actor":{"display_login":"hugespoon"}}