{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/729","repository_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin","labels_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/729/comments","events_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/729/events","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/729","id":305987747,"number":729,"title":"IndexOutOfBoundsException on force push on target branch","user":{"login":"asirbu2002","id":7890541,"avatar_url":"https://avatars2.githubusercontent.com/u/7890541?v=4","gravatar_id":"","url":"https://api.github.com/users/asirbu2002","html_url":"https://github.com/asirbu2002","followers_url":"https://api.github.com/users/asirbu2002/followers","following_url":"https://api.github.com/users/asirbu2002/following{/other_user}","gists_url":"https://api.github.com/users/asirbu2002/gists{/gist_id}","starred_url":"https://api.github.com/users/asirbu2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asirbu2002/subscriptions","organizations_url":"https://api.github.com/users/asirbu2002/orgs","repos_url":"https://api.github.com/users/asirbu2002/repos","events_url":"https://api.github.com/users/asirbu2002/events{/privacy}","received_events_url":"https://api.github.com/users/asirbu2002/received_events","type":"User","site_admin":false},"labels":[{"id":207462562,"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/labels/awaiting%20feedback","name":"awaiting feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-16T16:09:46Z","updated_at":"2018-03-23T04:20:30Z","closed_at":null,"author_association":"NONE","body":"## Issue\r\nIn jenkins I activate plugin on Merge requests and on any push on the source or target branch.\r\n\r\nIf I do a force-push on target branch, a stacktrace IndexOutOfBoundsException occurs\r\n\r\n### Context\r\n- **Gitlab plugin version**: 1.5.3\r\n- **Gitlab version**: 8.3.4\r\n- **Jenkins version**: 1.6.16\r\n- **Job type**: Pipeline, Freestyle, Matrix, etc.\r\n\r\n### Logs & Traces\r\n```\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0\r\n\tat java.util.ArrayList.rangeCheck(ArrayList.java:653)\r\n\tat java.util.ArrayList.get(ArrayList.java:429)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.OpenMergeRequestPushHookTriggerHandler.retrieveCauseData(OpenMergeRequestPushHookTriggerHandler.java:149)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.OpenMergeRequestPushHookTriggerHandler.handleMergeRequest(OpenMergeRequestPushHookTriggerHandler.java:118)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.OpenMergeRequestPushHookTriggerHandler.handle(OpenMergeRequestPushHookTriggerHandler.java:69)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.OpenMergeRequestPushHookTriggerHandler.handle(OpenMergeRequestPushHookTriggerHandler.java:45)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.PushHookTriggerHandlerList.handle(PushHookTriggerHandlerList.java:24)\r\n\tat com.dabsquared.gitlabjenkins.trigger.handler.push.PushHookTriggerHandlerList.handle(PushHookTriggerHandlerList.java:13)\r\n\tat com.dabsquared.gitlabjenkins.GitLabPushTrigger.onPost(GitLabPushTrigger.java:393)\r\n\tat com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction$1.performOnPost(PushBuildAction.java:72)\r\n\tat com.dabsquared.gitlabjenkins.webhook.build.BuildWebHookAction$TriggerNotifier.run(BuildWebHookAction.java:54)\r\n\tat hudson.security.ACL.impersonate(ACL.java:198)\r\n\tat com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction.execute(PushBuildAction.java:69)\r\n\tat com.dabsquared.gitlabjenkins.webhook.build.BuildWebHookAction.execute(BuildWebHookAction.java:31)\r\n\tat com.dabsquared.gitlabjenkins.webhook.GitLabWebHook.getDynamic(GitLabWebHook.java:44)\r\n\t... 71 more\r\n```"},"comment":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/comments/375540388","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/729#issuecomment-375540388","issue_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/729","id":375540388,"user":{"login":"omehegan","id":1775894,"avatar_url":"https://avatars0.githubusercontent.com/u/1775894?v=4","gravatar_id":"","url":"https://api.github.com/users/omehegan","html_url":"https://github.com/omehegan","followers_url":"https://api.github.com/users/omehegan/followers","following_url":"https://api.github.com/users/omehegan/following{/other_user}","gists_url":"https://api.github.com/users/omehegan/gists{/gist_id}","starred_url":"https://api.github.com/users/omehegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omehegan/subscriptions","organizations_url":"https://api.github.com/users/omehegan/orgs","repos_url":"https://api.github.com/users/omehegan/repos","events_url":"https://api.github.com/users/omehegan/events{/privacy}","received_events_url":"https://api.github.com/users/omehegan/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T04:20:29Z","updated_at":"2018-03-23T04:20:29Z","author_association":"MEMBER","body":"@asirbu2002 wow, a 3 year old version of Jenkins? There are a thousand reasons why you should look into upgrading, not the least of which is that your version is vulnerable to tons of published security flaws.\r\n\r\nI'll try to reproduce this. It's possible that a force push results in something unusual being sent to Jenkins which throws off the plugin."}}
{"actor":{"display_login":"omehegan"}}