-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: event rulesFor issues related to the Event Rules featureFor issues related to the Event Rules featuretype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v3.7.2
Python Version
3.10
Steps to Reproduce
- Create a webhook that triggers on an IP Address delete
- Create a custom protection rule that will block deletion if IP addresses. For example:
{ "ipam.ipaddress": [ { "status": { "eq": "deprecated" } } ] } - Go delete an IP address object that does not satisfy the protection rule
- Observe the error message
Deletion is prevented by a protection rule: {'status': ['Ensure this value is equal to deprecated.']}(this is expected) - Observe the webhook firing for an ipaddress deletion (this is unexpected)
Expected Behavior
Webhook should not fire on deletion if a protection rule prevented the deletion from happening.
Observed Behavior
Webhook is sent sent with event deleted and a snapshot.postchange value of null despite the system blocking this deletion. This could have implications on webhook receivers processing the deletion when in fact the object remains in NetBox.
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: event rulesFor issues related to the Event Rules featureFor issues related to the Event Rules featuretype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application