sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.96k stars 576 forks source link

Webhooks are triggered more than once #456

Open vbrandl opened 2 months ago

vbrandl commented 2 months ago

I recently updated Nexus to 3.71.0-06.

I run a simple webservice on the same server, that listens for release webhooks and sends a notification email. Since the update to 3.71.0-06, the webhook service is called exactly 26 times for each release, instead of exactly once as before. This causes notification spam.

As a workaround I cache the (component.group, component.name, component.version) tuple in the webservice to remember components for which the notification has already been sent.

Still this seems to be a bug in nexus.

FrankAnk commented 1 week ago

I have the same problem with version 3.70.3-01. The webhook is posted once with "action": "CREATED" and about 10 further times with "action":"UPDATED", with previous nexus versions i didn't encounter this behaviour.