jenkinsci / jenkinsci/gitlab-branch-source-plugin

[JENKINS-65902] Gitlab Trigger Url returns 403

Open
#697 0 comments 0 reactions 0 assignees View on GitHub
component:gitlab-branch-source-plugin imported-jira-issue jira-type:task priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

When i try to send a Gitlab Trigger Push Event tests to jenkins, the server received the 403 error

// code placeholder

Hook executed successfully but returned HTTP 403 "Content-Type" content="text/html;charset=utf-8"/> Error 403 No valid crumb was included in the request

HTTP ERROR 403 No valid crumb was included in the request

URI:/job/Multiple-Branch-Demo/gitlab-webhook/post STATUS:403 MESSAGE:No valid crumb was included in the request SERVLET:Stapler
"https://eclipse.org/jetty">Powered by Jetty:// 9.4.33.v20201020


what should i do if i want to get a successful return?

 

Notes:

Already configured the jenkins and gitlab, like below:

1 http://xxxxxxxxxx/job/Multiple-Branch-Demo/gitlab-webhook/post

2

3

 

 

4 My GitLab Branch Source plugin version is 1.5.4

---
Originally reported by rty_dq, imported from: Gitlab Trigger Url returns 403


  • assignee: baymac
  • status: Open
  • priority: Minor
  • component(s): gitlab-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251216-182730

Raw content of original issue

When i try to send a Gitlab Trigger Push Event tests to jenkins, the server received the 403 error



// code placeholder

Hook executed successfully but returned HTTP 403 <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 403 No valid crumb was included in the request</title> </head> <body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2> <table> <tr><th>URI:</th><td>/job/Multiple-Branch-Demo/gitlab-webhook/post</td></tr> <tr><th>STATUS:</th><td>403</td></tr> <tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table> <hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.33.v20201020</a><hr/> </body> </html>


what should i do if i want to get a successful return?

 

Notes:

Already configured the jenkins and gitlab, like below:

1 http://xxxxxxxxxx/job/Multiple-Branch-Demo/gitlab-webhook/post

2

3

 

 

4 My GitLab Branch Source plugin version is 1.5.4

3 attachments

- [image-2021-06-16-11-09-29-790.png](https://issues.jenkins.io/secure/attachment/55013/image-2021-06-16-11-09-29-790.png)
> ![image-2021-06-16-11-09-29-790.png](https://issues.jenkins.io/secure/attachment/55013/image-2021-06-16-11-09-29-790.png)
- [image-2021-06-16-11-09-49-972.png](https://issues.jenkins.io/secure/attachment/55014/image-2021-06-16-11-09-49-972.png)
> ![image-2021-06-16-11-09-49-972.png](https://issues.jenkins.io/secure/attachment/55014/image-2021-06-16-11-09-49-972.png)
- [image-2021-06-16-12-46-12-644.png](https://issues.jenkins.io/secure/attachment/55015/image-2021-06-16-12-46-12-644.png)
> ![image-2021-06-16-12-46-12-644.png](https://issues.jenkins.io/secure/attachment/55015/image-2021-06-16-12-46-12-644.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.