tcWebHooks icon indicating copy to clipboard operation
tcWebHooks copied to clipboard

Configured webhooks break when kotlin code syncs

Open jacobs-xero opened this issue 7 months ago • 20 comments

Expected Behavior

Configured webhooks should be configured correctly and editable.

Current Behavior

Configured webhooks produce an error when trying to edit

An unexpected error occured. Please see your browser's javascript console.
Responding with error, status code: 404 (Not Found).
Details: jetbrains.buildServer.server.rest.errors.NotFoundException: Could not find a webhook with that id
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.

Configured webhook has lost all it's settings

Screenshot 2024-07-18 at 11 39 26 AM

Under Versioned Settings, Loading project settings from VCS can re-create the webhooks with the correct settings. However leaves these "ghost" webhooks to persist until a service restart.

Extent of the breaking varies If a webhook is defined in code and that definition is not altered, it stays in place and can be edited, but it loses some configuration and needs to be fixed If a webhook is not defined in code (eg for subprojects, because we have no way of defining that in code), then the webhook just becomes uneditable

Steps to Reproduce (for bugs)

  1. Make a kotlin change, unrelated to webhooks
  2. Wait for Versioned Settings to synchronise and apply changes
  3. Webhooks break

Your Environment

  • tcWebHooks Version: 2.0.1
  • TeamCity Version: 2024.03.2 (build 156319)
  • TeamCity server Operating System: Amazon Linux 2 LTS
  • Are you using a WebHook Template?:

jacobs-xero avatar Jul 18 '24 01:07 jacobs-xero