You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/19 07:39:00 UTC

[jira] [Resolved] (CAMEL-25780) camel-aws2-eventbridge - EventbridgePutEventsIT sends a detail that is not JSON, which floci 2.3.0 refuses

     [ https://issues.apache.org/jira/browse/CAMEL-25780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-25780.
---------------------------------
    Resolution: Fixed

Fixed on main in https://github.com/apache/camel/commit/d0a4758ab404 : the test sends {"message":"Test Event"} as the detail. Floci 2.3.0 is kept, as it behaves like AWS.

_Claude Code on behalf of Claus Ibsen_

> camel-aws2-eventbridge - EventbridgePutEventsIT sends a detail that is not JSON, which floci 2.3.0 refuses
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-25780
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25780
>             Project: Camel
>          Issue Type: Test
>          Components: camel-aws2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Since the test-infra AWS container was upgraded to floci 2.3.0 (#28006), EventbridgePutEventsIT fails with "expected: not <null>" on the eventId of the PutEvents response. Every PR whose CI tests camel-aws2-eventbridge fails on it (seen on PR 28070 and PR 28074).
> Floci 2.3.0 now validates the event detail as AWS does. The test sends the plain string "Test Event" as the body, which the producer uses as the Detail of the entry, and floci answers:
> {code}
> {"FailedEntryCount":1,"Entries":[{"ErrorCode":"MalformedDetail","ErrorMessage":"The JSON provided is not valid."}]}
> {code}
> floci 2.2.0 accepted it. AWS documents Detail as "A valid JSON object" (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html), so floci is right and the test is wrong. The other eventbridge ITs already send JSON.
> Fix: send a JSON body in EventbridgePutEventsIT. All eventbridge ITs pass on floci 2.3.0 with it.
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)