Skip to content

Configured webhooks break when kotlin code syncs #246

@jacobs-xero

Description

@jacobs-xero

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?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions