You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Slack notifications for BOM_CUNSUMED and BOM_PROCESSED and maybe other types of notifications are not delivered successfully to Slack, due to malformed JSON sent by Dependency Track.
This is due to a misplaced comma in the Pebble template file for slack notifications. See here
Steps to Reproduce
Prerequisites:
Setup simple HTTP server which parses JSON for any incoming requests.
Setup Slack notification within Dependency Track with the destination URL set to point to the simple HTTP server.
Upload SBOM to Dependency Track and wait for notification to fire.
If Slack notification has been setted up correctly, you would receive an error in your HTTP server, which points to the misplaced comma
Expected Behavior
Pebble notification for Slack should be revised and checked to contain valid templated JSON. If this is done, all types of notifications should be delivered successfully to the designated Slack channel.
See screenshot below on how the end result should look like:
Current Behavior
Currently the Slack notifications for BOM_CUNSUMED and BOM_PROCESSED and maybe other types of notifications are not delivered successfully to Slack, due to malformed JSON sent by Dependency Track.
See example JSON payload:
This is due to a misplaced comma in the Pebble template file for slack notifications. See here
Steps to Reproduce
Prerequisites:
Expected Behavior
Pebble notification for Slack should be revised and checked to contain valid templated JSON. If this is done, all types of notifications should be delivered successfully to the designated Slack channel.
See screenshot below on how the end result should look like:
![image](https://private-user-images.githubusercontent.com/3207661/280458235-9477b62a-0d06-4bbd-a2d0-32774c5e63c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzI2MDIsIm5iZiI6MTczOTAzMjMwMiwicGF0aCI6Ii8zMjA3NjYxLzI4MDQ1ODIzNS05NDc3YjYyYS0wZDA2LTRiYmQtYTJkMC0zMjc3NGM1ZTYzYzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMTYzMTQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjk1N2Y3MDdkYjk2MTg0ODAyZjgwYWU1ZjFhZGExOTY3ZDk2NDk5YTIwZjE5YzdkMmFkMjFkZGE4MDEzZjYxNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.snORDLRAuhrGtXcxclv6KqyVlLrLkAj8ym3exSwdq1E)
Dependency-Track Version
4.9.0
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
12
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: