<< Back to previous view |
[QB-3416] Response to GitLab hook request is HTTP 200 OK if no webhook found for configuration
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 9.0.10 |
Fix Version/s: | 9.0.13 |
Type: | Bug | Priority: | Minor |
Reporter: | Alexey Shumkin | Assigned To: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: |
Operating System Linux 4.4.0-139-generic, amd64
JVM OpenJDK 64-Bit Server VM 1.8.0_111, Oracle Corporation QuickBuild Version 9.0.10 - Sat May 18 10:49:01 UTC 2019 |
Description |
QB responses with the error text (by its meaning) but with the HTTP 200 OK status code
Steps to reproduce: 1. Set up a GitLab project to send webhook to a QB server 2. Test this setup in GitLab with an appropriate button "Test" 3. See that the request succeeds but it details shows that it is not Response headers: Connection: close Date: Thu, 04 Jul 2019 11:25:16 GMT Content-Type: text/plain Vary: Accept-Encoding, User-Agent Server: Jetty(9.4.14.v20181114) Response body: Gitlab webhook setting not defined and, expectedly, a build is not run.. I suppose QB server should give some 4xx error status code in such cases to simplify diagnostics. |