We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications webhook sends invalid HTTP header when fields are empty. Here is the raw HTTP payload being received by netcat:
nc -l -p 9090 POST / HTTP/1.1 content-type: application/json accept: application/json : Content-Length: 51558 Host: myhost:9090 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.14 (Java/21.0.5) Accept-Encoding: gzip,deflate { "notification": { "level": "INFORMATIONAL", "scope": "PORTFOLIO", "group": "BOM_CONSUMED", "timestamp": "2024-10-31T11:14:17.975933948", "title": "Bill of Materials Consumed", "content": "A CycloneDX BOM was consumed and will be processed", "subject":
We can see above that below the accept: application/json header a blank header key and value are being sent which is invalid.
accept: application/json
myhost:9090
nc -l -p 9090
:
If the API key/secret fields are empty, no blank header key/value with a colon should be sent.
4.13.0-SNAPSHOT
Container Image
H2
No response
Google Chrome
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
Notifications webhook sends invalid HTTP header when fields are empty.
Here is the raw HTTP payload being received by netcat:
We can see above that below the
accept: application/json
header a blank header key and value are being sent which is invalid.Steps to Reproduce
myhost:9090
nc -l -p 9090
:
which is the blank fields for API token header and API token in the UI:Expected Behavior
If the API key/secret fields are empty, no blank header key/value with a colon should be sent.
Dependency-Track Version
4.13.0-SNAPSHOT
Dependency-Track Distribution
Container Image
Database Server
H2
Database Server Version
No response
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: