{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/28","repository_url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin","labels_url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/28/comments","events_url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/28/events","html_url":"https://github.com/jenkinsci/embeddable-build-status-plugin/issues/28","id":295970842,"node_id":"MDU6SXNzdWUyOTU5NzA4NDI=","number":28,"title":"Error HTTP 404 for unprotected link","user":{"login":"stephanebouchard","id":34163892,"node_id":"MDQ6VXNlcjM0MTYzODky","avatar_url":"https://avatars2.githubusercontent.com/u/34163892?v=4","gravatar_id":"","url":"https://api.github.com/users/stephanebouchard","html_url":"https://github.com/stephanebouchard","followers_url":"https://api.github.com/users/stephanebouchard/followers","following_url":"https://api.github.com/users/stephanebouchard/following{/other_user}","gists_url":"https://api.github.com/users/stephanebouchard/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanebouchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanebouchard/subscriptions","organizations_url":"https://api.github.com/users/stephanebouchard/orgs","repos_url":"https://api.github.com/users/stephanebouchard/repos","events_url":"https://api.github.com/users/stephanebouchard/events{/privacy}","received_events_url":"https://api.github.com/users/stephanebouchard/received_events","type":"User","site_admin":false},"labels":[{"id":4694399,"node_id":"MDU6TGFiZWw0Njk0Mzk5","url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/labels/bug","name":"bug","color":"fc2929","default":true},{"id":1158352043,"node_id":"MDU6TGFiZWwxMTU4MzUyMDQz","url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/labels/v2.0","name":"v2.0","color":"a8123f","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T18:40:13Z","updated_at":"2019-01-03T11:13:26Z","closed_at":null,"author_association":"NONE","body":"# Error HTTP 404 for unprotected link\r\n\r\nI get the **Error HTTP 404** when trying to get the unprotected link Build Status Icon. It happened on all  my \"GitHub Organization\" and \"Multibranch Pipeline\" Jenkins Projects **with** branches containing **'/'** in their name. For example if the branch name is `release/1.2.8`\r\n\r\nHere is my Jenkins Setup for the explanation of this issue.\r\n\r\n- GitHub Organization (**oss**)\r\n- contain the repository (**zlib**)\r\n- with two branches: `master` and `release/1.2.8`\r\n\r\nThe links provided by the plugin are:\r\n\r\n`master`\r\n\r\n- https://jenkins.example.com/buildStatus/icon?job=oss/zlib/master\r\n\r\n`release/1.2.8`\r\n\r\n- https://jenkins.example.com/buildStatus/icon?job=oss/zlib/release%2F1.2.8\r\n\r\n## Results\r\n\r\n- As expected, the Build Status Icon is displayed for `master` branch.\r\n\r\nBut **not** for the `release/1.2.8` branch. This is the error message when trying to access the link with my web browser:\r\n\r\n```\r\nThis jenkins.example.com page can’t be found\r\nNo webpage was found for the web address: https://jenkins.example.com/buildStatus/icon?job=oss/zlib/release%2F1.2.8\r\nHTTP ERROR 404\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/comments/451114914","html_url":"https://github.com/jenkinsci/embeddable-build-status-plugin/issues/28#issuecomment-451114914","issue_url":"https://api.github.com/repos/jenkinsci/embeddable-build-status-plugin/issues/28","id":451114914,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTExNDkxNA==","user":{"login":"thomas-dee","id":33127764,"node_id":"MDQ6VXNlcjMzMTI3NzY0","avatar_url":"https://avatars3.githubusercontent.com/u/33127764?v=4","gravatar_id":"","url":"https://api.github.com/users/thomas-dee","html_url":"https://github.com/thomas-dee","followers_url":"https://api.github.com/users/thomas-dee/followers","following_url":"https://api.github.com/users/thomas-dee/following{/other_user}","gists_url":"https://api.github.com/users/thomas-dee/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-dee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-dee/subscriptions","organizations_url":"https://api.github.com/users/thomas-dee/orgs","repos_url":"https://api.github.com/users/thomas-dee/repos","events_url":"https://api.github.com/users/thomas-dee/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-dee/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T11:13:26Z","updated_at":"2019-01-03T11:13:26Z","author_association":"CONTRIBUTOR","body":"Branches with slashes are internally stored in Jenkins already encoded (like `release%2F1.2.8`).\r\nTo reference the correct job you MUST encode the branch name **twice**: `release%252F1.2.8`.\r\nSo, a working url would be: `https://jenkins.example.com/buildStatus/icon?job=oss/zlib/release%252F1.2.8`\r\n\r\n"}}
{"actor":{"display_login":"thomas-dee"}}