Claus Ibsen created CAMEL-28066:
-----------------------------------
Summary: camel-zendesk - deprecated and no longer supported
Zendesk calls are exposed, and Optional results are not unwrapped
Key: CAMEL-28066
URL: https://issues.apache.org/jira/browse/CAMEL-28066
Project: Camel
Issue Type: Bug
Components: camel-zendesk
Reporter: Claus Ibsen
Fix For: 4.25.0
h4. 1. Optional results are not unwrapped
getSearchTicketResults and executeView return java.util.Optional from
zendesk-java-client 1.7.0, and the producer sets it as the message body as it
is. Proposed change: unwrap (empty -> null body).
h4. 2. Methods deprecated in the SDK are not deprecated in Camel
getTicketsIncrementally(startTime, endTime) (Zendesk.java:698, endTime is not
supported by the incremental export) and getHelpCenterLocales
(Zendesk.java:3081, use listHelpCenterLocales). Proposed change: exclude them
or document them as deprecated (the API descriptions now say so).
h4. 3. Calls Zendesk no longer supports
- trustTicketAudit: PUT /tickets/{id}/audits/{id}/trust is no longer in the
Ticket Audits reference.
- Targets: URL and branded targets are unsupported since 2024-10-28 (webhooks
replace them); only email targets work, and the component has no webhooks API.
- Forums/topics (/api/v2/forums, /topics, /import/topics): the old Web portal
API; community topics are /api/v2/community/topics now (not verified that the
old paths are gone).
Proposed change: check and exclude the dead calls (excludeMethods in
pom.xml:80), and consider the webhooks API.
h4. 4. getArticlesFromAllLabels is en-us only
The SDK hardcodes /help_center/en-us/articles.json (Zendesk.java:660). SDK
issue; documented in the description.
Found while writing the API method and parameter descriptions of CAMEL-27980
(https://github.com/apache/camel/pull/31273).
_Filed by Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)