-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.122
Bitbucket Branch Source 2.2.11
Error 307 is reported during deregistering hooks for moved repositories:
Could not deregister hooks for project-name/repository-name com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 307: . HttpResponseProxy{HTTP/1.1 307 [Date: Thu, 12 Jul 2018 03:41:36 GMT, Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips, X-AREQUESTID: x, X-ASEN: x, X-AUSERID: x, X-AUSERNAME: jenkins-user, X-ASESSIONID: x, Location: https://bitbucket.host/rest/webhook/1.0/projects/NEW-PROJECT-NAME/repos/repository-name/configurations/202, X-Content-Type-Options: nosniff, Content-Type: application/json, Vary: Accept-Encoding, Set-Cookie: BITBUCKETSESSIONID=x; Path=/; Secure; HttpOnly, Set-Cookie: x; Domain=.host; Path=/; HttpOnly, Keep-Alive: timeout=5, max=100, Connection: Keep-Alive, Transfer-Encoding: chunked] org.apache.http.client.entity.DecompressingEntity@5965074b} at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.doRequest(BitbucketServerAPIClient.java:807) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.deleteRequest(BitbucketServerAPIClient.java:823) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.removeCommitWebHook(BitbucketServerAPIClient.java:524) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.removeHooks(WebhookAutoRegisterListener.java:210) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.access$200(WebhookAutoRegisterListener.java:64) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener$2.doRun(WebhookAutoRegisterListener.java:123) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
New project name is displayed in logs NEW-PROJECT-NAME but only one request with old project name old-project-name is visible in Bitbucket logs:
ip,ip | https | x | - | 2018-07-12 05:41:36,962 | "DELETE /rest/webhook/1.0/projects/old-project-name/repos/repository-name/configurations/202 HTTP/1.1" | "" "Apache-HttpClient/4.5.5 (Java/1.8.0_171)" | - | - | - | - | - | - | ip,ip | https | x | jenkins-user | 2018-07-12 05:41:37,116 | "DELETE /rest/webhook/1.0/projects/old-project-name/repos/repository-name/configurations/202 HTTP/1.1" | "" "Apache-HttpClient/4.5.5 (Java/1.8.0_171)" | 307 | 0 | 106 | - | 154 | x |