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
Describe the bug
In case that a DSC has subscribed to its own artifact on update the subscriptions location receives the previous artifact data instead of the new data.
To Reproduce
Steps to reproduce the behavior:
Create an artifact
Create a subscription and set the location and subscriber to webhook
Update the artifact with new data using the endpoint POST /api/artifact/artifactId/data
See that webhook receives the value before the update
Expected behavior
The updated value should be dispatched to webhook.
The text was updated successfully, but these errors were encountered:
omarsilva1
changed the title
DSC publishes old data on subscription
DSC publishes old data on subscription (with workaround)
Dec 12, 2022
There is a workaround for this bug. Updating only the value of the artifact leads to the aforementioned issue. However, if you update the whole artifact (using POST /api/artifact/{artifactId} with the request body containing the new value and the previous title and description) the correct value is sent.
The best way of updating an artifact value (so that it works with subscriptions)
PUT /api/artifacts/{id} HTTP/1.1
Content-Type: application/json
{
"title": "Artifact Title",
"description": "Artifact Description",
"automatedDownload": false,
"value": "new value"
}
It would be still interesting to know why POST /api/artifact/{artifactId}/data leads to the old data being sent.
Describe the bug
In case that a DSC has subscribed to its own artifact on update the subscriptions location receives the previous artifact data instead of the new data.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The updated value should be dispatched to webhook.
The text was updated successfully, but these errors were encountered: