Claus Ibsen created CAMEL-26165:
-----------------------------------

             Summary: camel-clickup - a webhook event other than 
taskTimeTrackedUpdated answers 500, so ClickUp keeps retrying it
                 Key: CAMEL-26165
                 URL: https://issues.apache.org/jira/browse/CAMEL-26165
             Project: Camel
          Issue Type: Bug
          Components: camel-clickup
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while adding the catalog body types of clickup (CAMEL-24961, PR #28410).

h4. 1. Any event other than taskTimeTrackedUpdated answers 500

The {{events}} option subscribes the webhook to a list of ClickUp events, but 
{{Event}} (main 2a465aa4814c, lines 24-27) declares only one subtype, 
{{TaskTimeTrackedUpdatedEvent}}. {{ClickUpWebhookProcessor.process}} (line 65) 
reads every request with {{MAPPER.readValue(body, Event.class)}}, so any other 
event kind fails with Jackson {{InvalidTypeIdException}}, the exchange fails, 
and the webhook answers 500. ClickUp then keeps retrying that event. Checked on 
4.24.0-SNAPSHOT with the webhook on netty-http and a valid signature.

Proposed: give {{Event}} a {{defaultImpl}} (a generic event with the raw 
fields) so other kinds are delivered, or answer 2xx and skip the kinds that are 
not supported.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to